#662AA1#662AA1

#662AA1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.181 H 302.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#662AA1
RGBrgb(102, 42, 161)
HSLhsl(270, 59%, 40%)
HSVhsv(270, 74%, 63%)
CMYKcmyk(36.6%, 73.9%, 0%, 36.9%)
CIE-LABlab(31.93, 49.29, -53.58)
CIE-LCHlch(31.93, 72.80, 312.61°)
OKLaboklab(43.52% 0.0967 -0.1527)
OKLCHoklch(43.52% 0.181 302.3)
XYZxyz(12.7389, 7.0539, 34.4017)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA1 #65A12A
analogous
#2A2AA1 #662AA1 #A12AA1
triadic
#662AA1 #A1662A #2AA166
tetradic
#662AA1 #A12A2A #65A12A #2AA1A1
square
#662AA1 #A12A2A #65A12A #2AA1A1
split-complementary
#662AA1 #A1A12A #2AA12A
monochromatic
#281140 #471D70 #662AA1 #853CCC #A36DD9

Accessibility & contrast

On white

8.71
#662AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#662AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA1#FFFFFF#000000##FFFFFF
##662AA11.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#5A4763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662aa1;
/* rgb */ color: rgb(102, 42, 161);
/* oklch */ color: oklch(43.5% 0.181 302.3);
Tailwind
colors: {
  custom: {
    50: '#9769be',
    500: '#662aa1',
    950: '#000000',
  },
}
SCSS
$custom: #662aa1;
$custom-light: #9769be;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa1",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 270.252,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43524,
    "c": 0.18074,
    "h": 302.3
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#662AA1
secondary
#93C067
accent
#E24693
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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