#662AA4#662AA4

#662AA4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.184 H 301.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#662AA4
RGBrgb(102, 42, 164)
HSLhsl(270, 59%, 40%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(37.8%, 74.4%, 0%, 35.7%)
CIE-LABlab(32.17, 50.03, -55.00)
CIE-LCHlch(32.17, 74.35, 312.29°)
OKLaboklab(43.77% 0.096 -0.1569)
OKLCHoklch(43.77% 0.184 301.5)
XYZxyz(13.0067, 7.1610, 35.8117)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA4 #68A42A
analogous
#2A2BA4 #662AA4 #A32AA4
triadic
#662AA4 #A4662A #2AA466
tetradic
#662AA4 #A42A2B #68A42A #2AA4A3
square
#662AA4 #A42A2B #68A42A #2AA4A3
split-complementary
#662AA4 #A4A32A #2BA42A
monochromatic
#291143 #481E73 #662AA4 #843ECD #A36EDA

Accessibility & contrast

On white

8.63
#662AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#662AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA4
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA4#FFFFFF#000000##FFFFFF
##662AA41.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#004BA2
Tritanopia (blue-blind)
#584965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662aa4;
/* rgb */ color: rgb(102, 42, 164);
/* oklch */ color: oklch(43.8% 0.184 301.5);
Tailwind
colors: {
  custom: {
    50: '#9769c0',
    500: '#662aa4',
    950: '#000000',
  },
}
SCSS
$custom: #662aa4;
$custom-light: #9769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa4",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 269.508,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.18395,
    "h": 301.5
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#662AA4
secondary
#96C169
accent
#E24595
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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