#662496#662496

#662496 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.176 H 306.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#662496
RGBrgb(102, 36, 150)
HSLhsl(275, 61%, 36%)
HSVhsv(275, 76%, 59%)
CMYKcmyk(32%, 76%, 0%, 41.2%)
CIE-LABlab(30.13, 49.28, -49.81)
CIE-LCHlch(30.13, 70.07, 314.70°)
OKLaboklab(41.98% 0.1047 -0.1416)
OKLCHoklch(41.98% 0.176 306.5)
XYZxyz(11.6142, 6.2887, 29.4502)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662496 #549624
analogous
#2D2496 #662496 #96248D
triadic
#662496 #966624 #249666
tetradic
#662496 #962D24 #549624 #248D96
square
#662496 #962D24 #549624 #248D96
split-complementary
#662496 #8D9624 #24962D
monochromatic
#230C33 #441865 #662496 #8830C7 #A45CD8

Accessibility & contrast

On white

9.30
#662496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#662496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662496
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662496#FFFFFF#000000##FFFFFF
##6624961.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#5E405B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662496;
/* rgb */ color: rgb(102, 36, 150);
/* oklch */ color: oklch(42.0% 0.176 306.5);
Tailwind
colors: {
  custom: {
    50: '#9666b6',
    500: '#662496',
    950: '#000000',
  },
}
SCSS
$custom: #662496;
$custom-light: #9666b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662496",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 274.737,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41979,
    "c": 0.17613,
    "h": 306.5
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#662496
secondary
#83BD59
accent
#E44387
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662496

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

Preview Lab → · Contrast checker → · Palette generator →

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