#662C8E#662C8E

#662C8E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.158 H 308.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#662C8E
RGBrgb(102, 44, 142)
HSLhsl(276, 53%, 36%)
HSVhsv(276, 69%, 56%)
CMYKcmyk(28.2%, 69%, 0%, 44.3%)
CIE-LABlab(30.83, 43.73, -43.76)
CIE-LCHlch(30.83, 61.86, 314.98°)
OKLaboklab(42.29% 0.0975 -0.1239)
OKLCHoklch(42.29% 0.158 308.2)
XYZxyz(11.2617, 6.5793, 26.2626)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662C8E #548E2C
analogous
#352C8E #662C8E #8E2C85
triadic
#662C8E #8E662C #2C8E66
tetradic
#662C8E #8E352C #548E2C #2C858E
square
#662C8E #8E352C #548E2C #2C858E
split-complementary
#662C8E #858E2C #2C8E35
monochromatic
#230F31 #441E5F #662C8E #883ABD #A465CF

Accessibility & contrast

On white

9.07
#662C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662C8E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662C8E#FFFFFF#000000##FFFFFF
##662C8E1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#17498C
Tritanopia (blue-blind)
#604159
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662c8e;
/* rgb */ color: rgb(102, 44, 142);
/* oklch */ color: oklch(42.3% 0.158 308.2);
Tailwind
colors: {
  custom: {
    50: '#956ab0',
    500: '#662c8e',
    950: '#000000',
  },
}
SCSS
$custom: #662c8e;
$custom-light: #956ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#662c8e",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 275.51,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42288,
    "c": 0.15763,
    "h": 308.2
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#662C8E
secondary
#83B660
accent
#DC4C87
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662C8E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#662C8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva