#662277 color

#662277 is rgb(102, 34, 119) in RGB and hsl(288, 56%, 30%) in HSL. The closest CSS named color is purple (#800080, ΔE 5.4). Use white text on it (contrast 10.19:1).

#662277magenta
HEX#662277
Short HEX#627
RGBrgb(102, 34, 119)
RGB percentrgb(40%, 13.3%, 46.7%)
HSLhsl(288, 56%, 30%)
HSV / HSBhsv(288, 71%, 47%)
CMYKcmyk(14%, 71%, 0%, 53%)

Edit in the color converter → · Check contrast → · Shades →

About #662277

#662277 is a medium-dark, saturated magenta with a hue angle of 288°. It belongs to the purple family and reads as a balanced color. In the RGB model blue is the strongest channel at 119 (47%) and green the weakest at 34 (13%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#662277
Short HEX#627
RGBrgb(102, 34, 119)
RGB percentrgb(40%, 13.3%, 46.7%)
HSLhsl(288, 56%, 30%)
HSV / HSBhsv(288, 71%, 47%)
CMYKcmyk(14%, 71%, 0%, 53%)
CIELAB (D65)lab(27.6 43.2 -34.6)
Decimal6693495
Binary01100110 00100010 01110111

HEX 66 22 77 → 102, 34, 119 (each pair is a base-16 number: 6×16 + 6 = 102)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #662277

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #662277RatioAA normalAA largeAAA normalAAA large
White text10.19:1PassPassPassPass
Black text2.06:1FailFailFailFail
White text on #662277
Black text on #662277
#662277 text on white
#662277 text on black

Relative luminance is 0.0530 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#003d79

Deuteranopia
#274375

Tritanopia
#66324a

Achromatopsia
#414141

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 20.5). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
purple#8000805.4
darkmagenta#8b008b7
rebeccapurple#6633997.1
indigo#4b00828.4

Nearby colors

CSS

.element {
  color: #662277;
  background-color: rgb(102, 34, 119);
  border: 1px solid hsl(288, 56%, 30%);
  box-shadow: 0 2px 8px rgb(102 34 119 / 50%);
}
:root { --brand: #662277; }

Frequently asked questions

What color is #662277?
A medium-dark saturated magenta in the purple family. Closest CSS name: purple.
What is #662277 in RGB?
rgb(102, 34, 119): red 102, green 34, blue 119.
What is the complementary color of #662277?
#337722, found by rotating the hue 180°.