#662086#662086

#662086 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.3% C 0.165 H 312.7°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#662086
RGBrgb(102, 32, 134)
HSLhsl(281, 61%, 33%)
HSVhsv(281, 76%, 53%)
CMYKcmyk(23.9%, 76.1%, 0%, 47.5%)
CIE-LABlab(28.33, 47.31, -42.83)
CIE-LCHlch(28.33, 63.82, 317.84°)
OKLaboklab(40.32% 0.1116 -0.1211)
OKLCHoklch(40.32% 0.165 312.7)
XYZxyz(10.2983, 5.5793, 23.0841)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662086 #408620
analogous
#332086 #662086 #862073
triadic
#662086 #866620 #208666
tetradic
#662086 #863320 #408620 #207386
square
#662086 #863320 #408620 #207386
split-complementary
#662086 #738620 #208633
monochromatic
#1B0823 #401455 #662086 #8C2CB7 #AA4CD4

Accessibility & contrast

On white

9.93
#662086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#662086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662086
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662086#FFFFFF#000000##FFFFFF
##6620861.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#144484
Tritanopia (blue-blind)
#623751
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662086;
/* rgb */ color: rgb(102, 32, 134);
/* oklch */ color: oklch(40.3% 0.165 312.7);
Tailwind
colors: {
  custom: {
    50: '#9563aa',
    500: '#662086',
    950: '#000000',
  },
}
SCSS
$custom: #662086;
$custom-light: #9563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#662086",
  "rgb": {
    "r": 102,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 281.176,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.16467,
    "h": 312.7
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#662086
secondary
#6DB74B
accent
#E54376
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662086

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

Preview Lab → · Contrast checker → · Palette generator →

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