#662987#662987

#662987 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.154 H 311.3°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#662987
RGBrgb(102, 41, 135)
HSLhsl(279, 53%, 35%)
HSVhsv(279, 70%, 53%)
CMYKcmyk(24.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(29.81, 43.54, -41.06)
CIE-LCHlch(29.81, 59.85, 316.68°)
OKLaboklab(41.4% 0.1017 -0.1159)
OKLCHoklch(41.4% 0.154 311.3)
XYZxyz(10.6448, 6.1602, 23.5453)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662987 #4A8729
analogous
#372987 #662987 #872979
triadic
#662987 #876629 #298766
tetradic
#662987 #873729 #4A8729 #297987
square
#662987 #873729 #4A8729 #297987
split-complementary
#662987 #798729 #298737
monochromatic
#1F0C29 #431B58 #662987 #8937B6 #A65DCE

Accessibility & contrast

On white

9.41
#662987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662987
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662987#FFFFFF#000000##FFFFFF
##6629871.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#1E4785
Tritanopia (blue-blind)
#623D54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662987;
/* rgb */ color: rgb(102, 41, 135);
/* oklch */ color: oklch(41.4% 0.154 311.3);
Tailwind
colors: {
  custom: {
    50: '#9568aa',
    500: '#662987',
    950: '#000000',
  },
}
SCSS
$custom: #662987;
$custom-light: #9568aa;
$custom-dark: #000000;
JSON
{
  "hex": "#662987",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 278.936,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.15421,
    "h": 311.3
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#662987
secondary
#78B359
accent
#DD4B7E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662987

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

Preview Lab → · Contrast checker → · Palette generator →

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