#662196#662196

#662196 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.179 H 306.8°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#662196
RGBrgb(102, 33, 150)
HSLhsl(275, 64%, 36%)
HSVhsv(275, 78%, 59%)
CMYKcmyk(32%, 78%, 0%, 41.2%)
CIE-LABlab(29.70, 50.51, -50.51)
CIE-LCHlch(29.70, 71.43, 315.00°)
OKLaboklab(41.68% 0.1075 -0.1436)
OKLCHoklch(41.68% 0.179 306.8)
XYZxyz(11.5272, 6.1146, 29.4212)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662196 #519621
analogous
#2C2196 #662196 #96218B
triadic
#662196 #966621 #219666
tetradic
#662196 #962C21 #519621 #218B96
square
#662196 #962C21 #519621 #218B96
split-complementary
#662196 #8B9621 #21962C
monochromatic
#220B32 #441664 #662196 #882CC8 #A457DA

Accessibility & contrast

On white

9.45
#662196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#662196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662196
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662196#FFFFFF#000000##FFFFFF
##6621961.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#5E3E5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662196;
/* rgb */ color: rgb(102, 33, 150);
/* oklch */ color: oklch(41.7% 0.179 306.8);
Tailwind
colors: {
  custom: {
    50: '#9764b6',
    500: '#662196',
    950: '#000000',
  },
}
SCSS
$custom: #662196;
$custom-light: #9764b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662196",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 275.385,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41677,
    "c": 0.17942,
    "h": 306.8
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#662196
secondary
#80BE55
accent
#E74185
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662196

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

Preview Lab → · Contrast checker → · Palette generator →

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