#662AA6#662AA6

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

Color values

HEX#662AA6
RGBrgb(102, 42, 166)
HSLhsl(269, 60%, 41%)
HSVhsv(269, 75%, 65%)
CMYKcmyk(38.6%, 74.7%, 0%, 34.9%)
CIE-LABlab(32.33, 50.52, -55.94)
CIE-LCHlch(32.33, 75.38, 312.09°)
OKLaboklab(43.94% 0.0956 -0.1597)
OKLCHoklch(43.94% 0.186 300.9)
XYZxyz(13.1887, 7.2338, 36.7704)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA6 #6AA62A
analogous
#2A2CA6 #662AA6 #A42AA6
triadic
#662AA6 #A6662A #2AA666
tetradic
#662AA6 #A62A2C #6AA62A #2AA6A4
square
#662AA6 #A62A2C #6AA62A #2AA6A4
split-complementary
#662AA6 #A6A42A #2CA62A
monochromatic
#2A1144 #481E75 #662AA6 #843FCE #A370DB

Accessibility & contrast

On white

8.58
#662AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#662AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA6
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA6#FFFFFF#000000##FFFFFF
##662AA61.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#004BA4
Tritanopia (blue-blind)
#584966
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662aa6;
/* rgb */ color: rgb(102, 42, 166);
/* oklch */ color: oklch(43.9% 0.186 300.9);
Tailwind
colors: {
  custom: {
    50: '#976ac1',
    500: '#662aa6',
    950: '#000000',
  },
}
SCSS
$custom: #662aa6;
$custom-light: #976ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa6",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 269.032,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43935,
    "c": 0.18609,
    "h": 300.9
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#662AA6
secondary
#97C26A
accent
#E34596
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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