#662A8D#662A8D

#662A8D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.159 H 308.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#662A8D
RGBrgb(102, 42, 141)
HSLhsl(276, 54%, 36%)
HSVhsv(276, 70%, 55%)
CMYKcmyk(27.7%, 70.2%, 0%, 44.7%)
CIE-LABlab(30.41, 44.46, -43.82)
CIE-LCHlch(30.41, 62.42, 315.42°)
OKLaboklab(41.97% 0.0999 -0.124)
OKLCHoklch(41.97% 0.159 308.9)
XYZxyz(11.1142, 6.4040, 25.8447)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662A8D #518D2A
analogous
#352A8D #662A8D #8D2A82
triadic
#662A8D #8D662A #2A8D66
tetradic
#662A8D #8D352A #518D2A #2A828D
square
#662A8D #8D352A #518D2A #2A828D
split-complementary
#662A8D #828D2A #2A8D35
monochromatic
#220E2F #441C5E #662A8D #8838BC #A461D0

Accessibility & contrast

On white

9.21
#662A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#662A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662A8D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662A8D#FFFFFF#000000##FFFFFF
##662A8D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#16488B
Tritanopia (blue-blind)
#603F58
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662a8d;
/* rgb */ color: rgb(102, 42, 141);
/* oklch */ color: oklch(42.0% 0.159 308.9);
Tailwind
colors: {
  custom: {
    50: '#9569af',
    500: '#662a8d',
    950: '#000000',
  },
}
SCSS
$custom: #662a8d;
$custom-light: #9569af;
$custom-dark: #000000;
JSON
{
  "hex": "#662a8d",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 276.364,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41965,
    "c": 0.15926,
    "h": 308.9
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#662A8D
secondary
#80B65D
accent
#DD4A84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662A8D

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

Preview Lab → · Contrast checker → · Palette generator →

#662A8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva