#662099#662099

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

Color values

HEX#662099
RGBrgb(102, 32, 153)
HSLhsl(275, 65%, 36%)
HSVhsv(275, 79%, 60%)
CMYKcmyk(33.3%, 79.1%, 0%, 40%)
CIE-LABlab(29.81, 51.60, -52.17)
CIE-LCHlch(29.81, 73.37, 314.68°)
OKLaboklab(41.83% 0.1077 -0.1485)
OKLCHoklch(41.83% 0.183 305.9)
XYZxyz(11.7445, 6.1578, 30.7007)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662099 #539920
analogous
#2A2099 #662099 #992090
triadic
#662099 #996620 #209966
tetradic
#662099 #992A20 #539920 #209099
square
#662099 #992A20 #539920 #209099
split-complementary
#662099 #909920 #20992A
monochromatic
#230B34 #441566 #662099 #882BCC #A457DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662099#FFFFFF#000000##FFFFFF
##6620991.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)
#00449C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#5D3F5C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662099;
/* rgb */ color: rgb(102, 32, 153);
/* oklch */ color: oklch(41.8% 0.183 305.9);
Tailwind
colors: {
  custom: {
    50: '#9764b8',
    500: '#662099',
    950: '#000000',
  },
}
SCSS
$custom: #662099;
$custom-light: #9764b8;
$custom-dark: #000000;
JSON
{
  "hex": "#662099",
  "rgb": {
    "r": 102,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 274.711,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.18345,
    "h": 305.9
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#662099
secondary
#82C055
accent
#E83F87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662099

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

Preview Lab → · Contrast checker → · Palette generator →

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