#662AA5#662AA5

#662AA5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.185 H 301.2°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#662AA5
RGBrgb(102, 42, 165)
HSLhsl(269, 59%, 41%)
HSVhsv(269, 75%, 65%)
CMYKcmyk(38.2%, 74.5%, 0%, 35.3%)
CIE-LABlab(32.25, 50.27, -55.47)
CIE-LCHlch(32.25, 74.87, 312.19°)
OKLaboklab(43.85% 0.0958 -0.1583)
OKLCHoklch(43.85% 0.185 301.2)
XYZxyz(13.0973, 7.1972, 36.2892)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA5 #69A52A
analogous
#2A2CA5 #662AA5 #A32AA5
triadic
#662AA5 #A5662A #2AA566
tetradic
#662AA5 #A52A2C #69A52A #2AA5A3
square
#662AA5 #A52A2C #69A52A #2AA5A3
split-complementary
#662AA5 #A5A32A #2CA52A
monochromatic
#2A1143 #481E74 #662AA5 #843ECE #A36FDA

Accessibility & contrast

On white

8.61
#662AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#662AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA5#FFFFFF#000000##FFFFFF
##662AA51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662aa5;
/* rgb */ color: rgb(102, 42, 165);
/* oklch */ color: oklch(43.9% 0.185 301.2);
Tailwind
colors: {
  custom: {
    50: '#976ac1',
    500: '#662aa5',
    950: '#000000',
  },
}
SCSS
$custom: #662aa5;
$custom-light: #976ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa5",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 269.268,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43852,
    "c": 0.18502,
    "h": 301.2
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#662AA5
secondary
#96C169
accent
#E34596
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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