#662986#662986

#662986 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.153 H 311.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#662986
RGBrgb(102, 41, 134)
HSLhsl(279, 53%, 34%)
HSVhsv(279, 69%, 53%)
CMYKcmyk(23.9%, 69.4%, 0%, 47.5%)
CIE-LABlab(29.74, 43.31, -40.55)
CIE-LCHlch(29.74, 59.33, 316.89°)
OKLaboklab(41.33% 0.1018 -0.1144)
OKLCHoklch(41.33% 0.153 311.7)
XYZxyz(10.5747, 6.1322, 23.1762)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662986 #498629
analogous
#382986 #662986 #862978
triadic
#662986 #866629 #298666
tetradic
#662986 #863829 #498629 #297886
square
#662986 #863829 #498629 #297886
split-complementary
#662986 #788629 #298638
monochromatic
#1F0C28 #421B57 #662986 #8A37B5 #A65CCD

Accessibility & contrast

On white

9.43
#662986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#662986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662986
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662986#FFFFFF#000000##FFFFFF
##6629861.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#1F4784
Tritanopia (blue-blind)
#623C54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662986;
/* rgb */ color: rgb(102, 41, 134);
/* oklch */ color: oklch(41.3% 0.153 311.7);
Tailwind
colors: {
  custom: {
    50: '#9568aa',
    500: '#662986',
    950: '#000000',
  },
}
SCSS
$custom: #662986;
$custom-light: #9568aa;
$custom-dark: #000000;
JSON
{
  "hex": "#662986",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 279.355,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4133,
    "c": 0.15314,
    "h": 311.7
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#662986
secondary
#77B358
accent
#DD4B7D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662986

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

Preview Lab → · Contrast checker → · Palette generator →

#662986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva