#662491#662491

#662491 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.171 H 308.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#662491
RGBrgb(102, 36, 145)
HSLhsl(276, 60%, 35%)
HSVhsv(276, 75%, 57%)
CMYKcmyk(29.7%, 75.2%, 0%, 43.1%)
CIE-LABlab(29.74, 48.12, -47.37)
CIE-LCHlch(29.74, 67.52, 315.45°)
OKLaboklab(41.58% 0.1057 -0.1344)
OKLCHoklch(41.58% 0.171 308.2)
XYZxyz(11.2201, 6.1310, 27.3749)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662491 #4F9124
analogous
#2F2491 #662491 #912485
triadic
#662491 #916624 #249166
tetradic
#662491 #912F24 #4F9124 #248591
square
#662491 #912F24 #4F9124 #248591
split-complementary
#662491 #859124 #24912F
monochromatic
#210C2F #441860 #662491 #8830C2 #A559D6

Accessibility & contrast

On white

9.43
#662491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662491
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662491#FFFFFF#000000##FFFFFF
##6624911.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#5F3E59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662491;
/* rgb */ color: rgb(102, 36, 145);
/* oklch */ color: oklch(41.6% 0.171 308.2);
Tailwind
colors: {
  custom: {
    50: '#9666b2',
    500: '#662491',
    950: '#000000',
  },
}
SCSS
$custom: #662491;
$custom-light: #9666b2;
$custom-dark: #000000;
JSON
{
  "hex": "#662491",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 276.33,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41583,
    "c": 0.17101,
    "h": 308.2
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#662491
secondary
#7EBA56
accent
#E34483
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662491

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

Preview Lab → · Contrast checker → · Palette generator →

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