#662E9E#662E9E

#662E9E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.173 H 302.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#662E9E
RGBrgb(102, 46, 158)
HSLhsl(270, 55%, 40%)
HSVhsv(270, 71%, 62%)
CMYKcmyk(35.4%, 70.9%, 0%, 38%)
CIE-LABlab(32.36, 46.66, -51.06)
CIE-LCHlch(32.36, 69.17, 312.42°)
OKLaboklab(43.76% 0.0931 -0.1453)
OKLCHoklch(43.76% 0.173 302.6)
XYZxyz(12.6266, 7.2474, 33.0748)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E9E #669E2E
analogous
#2E2E9E #662E9E #9E2E9E
triadic
#662E9E #9E662E #2E9E66
tetradic
#662E9E #9E2E2E #669E2E #2E9E9E
square
#662E9E #9E2E2E #669E2E #2E9E9E
split-complementary
#662E9E #9E9E2E #2E9E2E
monochromatic
#29123F #47206F #662E9E #8541C8 #A371D6

Accessibility & contrast

On white

8.57
#662E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#662E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E9E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E9E#FFFFFF#000000##FFFFFF
##662E9E1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#5B4862
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662e9e;
/* rgb */ color: rgb(102, 46, 158);
/* oklch */ color: oklch(43.8% 0.173 302.6);
Tailwind
colors: {
  custom: {
    50: '#966bbb',
    500: '#662e9e',
    950: '#000000',
  },
}
SCSS
$custom: #662e9e;
$custom-light: #966bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#662e9e",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 270,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.17261,
    "h": 302.6
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#662E9E
secondary
#94BD6B
accent
#DE4A94
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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