#662187#662187

#662187 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.164 H 312.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#662187
RGBrgb(102, 33, 135)
HSLhsl(281, 61%, 33%)
HSVhsv(281, 76%, 53%)
CMYKcmyk(24.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(28.54, 47.12, -43.10)
CIE-LCHlch(28.54, 63.86, 317.55°)
OKLaboklab(40.5% 0.1105 -0.1219)
OKLCHoklch(40.5% 0.164 312.2)
XYZxyz(10.3957, 5.6621, 23.4622)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662187 #428721
analogous
#332187 #662187 #872175
triadic
#662187 #876621 #218766
tetradic
#662187 #873321 #428721 #217587
square
#662187 #873321 #428721 #217587
split-complementary
#662187 #758721 #218733
monochromatic
#1C0925 #411556 #662187 #8B2DB8 #A94FD4

Accessibility & contrast

On white

9.85
#662187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#662187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662187
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662187#FFFFFF#000000##FFFFFF
##6621871.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#623852
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662187;
/* rgb */ color: rgb(102, 33, 135);
/* oklch */ color: oklch(40.5% 0.164 312.2);
Tailwind
colors: {
  custom: {
    50: '#9564ab',
    500: '#662187',
    950: '#000000',
  },
}
SCSS
$custom: #662187;
$custom-light: #9564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#662187",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 280.588,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40497,
    "c": 0.16449,
    "h": 312.2
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#662187
secondary
#6FB74D
accent
#E44478
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662187

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

Preview Lab → · Contrast checker → · Palette generator →

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