#662266 color

#662266 is rgb(102, 34, 102) in RGB and hsl(300, 50%, 27%) in HSL. The closest CSS named color is purple (#800080, ΔE 6.6). Use white text on it (contrast 10.58:1).

#662266magenta
HEX#662266
Short HEX#626
RGBrgb(102, 34, 102)
RGB percentrgb(40%, 13.3%, 40%)
HSLhsl(300, 50%, 27%)
HSV / HSBhsv(300, 67%, 40%)
CMYKcmyk(0%, 67%, 0%, 60%)

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

About #662266

#662266 is a dark, saturated magenta with a hue angle of 300°. It belongs to the pink & magenta family and reads as a warm color. In the RGB model red is the strongest channel at 102 (40%) and green the weakest at 34 (13%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#662266
Short HEX#626
RGBrgb(102, 34, 102)
RGB percentrgb(40%, 13.3%, 40%)
HSLhsl(300, 50%, 27%)
HSV / HSBhsv(300, 67%, 40%)
CMYKcmyk(0%, 67%, 0%, 60%)
CIELAB (D65)lab(26.5 39.8 -25.3)
Decimal6693478
Binary01100110 00100010 01100110

HEX 66 22 66 → 102, 34, 102 (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 #662266

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #662266RatioAA normalAA largeAAA normalAAA large
White text10.58:1PassPassPassPass
Black text1.99:1FailFailFailFail
White text on #662266
Black text on #662266
#662266 text on white
#662266 text on black

Relative luminance is 0.0493 (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
#193968

Deuteranopia
#324264

Tritanopia
#692b41

Achromatopsia
#3f3f3f

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#8000806.6
darkmagenta#8b008b8.5
rebeccapurple#66339910.6
indigo#4b008211.2

Nearby colors

CSS

.element {
  color: #662266;
  background-color: rgb(102, 34, 102);
  border: 1px solid hsl(300, 50%, 27%);
  box-shadow: 0 2px 8px rgb(102 34 102 / 50%);
}
:root { --brand: #662266; }

Frequently asked questions

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