#662391#662391

#662391 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.172 H 308.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#662391
RGBrgb(102, 35, 145)
HSLhsl(277, 61%, 35%)
HSVhsv(277, 76%, 57%)
CMYKcmyk(29.7%, 75.9%, 0%, 43.1%)
CIE-LABlab(29.59, 48.54, -47.61)
CIE-LCHlch(29.59, 67.99, 315.56°)
OKLaboklab(41.48% 0.1067 -0.1351)
OKLCHoklch(41.48% 0.172 308.3)
XYZxyz(11.1903, 6.0714, 27.3650)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662391 #4E9123
analogous
#2F2391 #662391 #912385
triadic
#662391 #916623 #239166
tetradic
#662391 #912F23 #4E9123 #238591
square
#662391 #912F23 #4E9123 #238591
split-complementary
#662391 #859123 #23912F
monochromatic
#210B2E #431760 #662391 #892FC2 #A558D7

Accessibility & contrast

On white

9.48
#662391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#662391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662391
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662391#FFFFFF#000000##FFFFFF
##6623911.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#5F3D58
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662391;
/* rgb */ color: rgb(102, 35, 145);
/* oklch */ color: oklch(41.5% 0.172 308.3);
Tailwind
colors: {
  custom: {
    50: '#9665b2',
    500: '#662391',
    950: '#000000',
  },
}
SCSS
$custom: #662391;
$custom-light: #9665b2;
$custom-dark: #000000;
JSON
{
  "hex": "#662391",
  "rgb": {
    "r": 102,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 276.545,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41478,
    "c": 0.17218,
    "h": 308.3
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#662391
secondary
#7DBB55
accent
#E44482
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662391

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

Preview Lab → · Contrast checker → · Palette generator →

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