#662990#662990

#662990 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.164 H 307.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#662990
RGBrgb(102, 41, 144)
HSLhsl(276, 56%, 36%)
HSVhsv(276, 72%, 56%)
CMYKcmyk(29.2%, 71.5%, 0%, 43.5%)
CIE-LABlab(30.46, 45.64, -45.59)
CIE-LCHlch(30.46, 64.51, 315.03°)
OKLaboklab(42.07% 0.1007 -0.1292)
OKLCHoklch(42.07% 0.164 307.9)
XYZxyz(11.3054, 6.4244, 27.0246)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662990 #539029
analogous
#332990 #662990 #902987
triadic
#662990 #906629 #299066
tetradic
#662990 #903329 #539029 #298790
square
#662990 #903329 #539029 #298790
split-complementary
#662990 #879029 #299033
monochromatic
#230E31 #441B60 #662990 #8837C0 #A461D2

Accessibility & contrast

On white

9.19
#662990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#662990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662990
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662990#FFFFFF#000000##FFFFFF
##6629901.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#0E488E
Tritanopia (blue-blind)
#5F4059
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662990;
/* rgb */ color: rgb(102, 41, 144);
/* oklch */ color: oklch(42.1% 0.164 307.9);
Tailwind
colors: {
  custom: {
    50: '#9668b1',
    500: '#662990',
    950: '#000000',
  },
}
SCSS
$custom: #662990;
$custom-light: #9668b1;
$custom-dark: #000000;
JSON
{
  "hex": "#662990",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 275.534,
    "s": 55.676,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.16379,
    "h": 307.9
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#662990
secondary
#82B85D
accent
#DF4986
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662990

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

Preview Lab → · Contrast checker → · Palette generator →

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