#662AA2#662AA2

#662AA2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.182 H 302.0°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#662AA2
RGBrgb(102, 42, 162)
HSLhsl(270, 59%, 40%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(37%, 74.1%, 0%, 36.5%)
CIE-LABlab(32.01, 49.53, -54.06)
CIE-LCHlch(32.01, 73.32, 312.50°)
OKLaboklab(43.61% 0.0964 -0.1541)
OKLCHoklch(43.61% 0.182 302)
XYZxyz(12.8275, 7.0893, 34.8680)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA2 #66A22A
analogous
#2A2AA2 #662AA2 #A22AA2
triadic
#662AA2 #A2662A #2AA266
tetradic
#662AA2 #A22A2A #66A22A #2AA2A2
square
#662AA2 #A22A2A #66A22A #2AA2A2
split-complementary
#662AA2 #A2A22A #2AA22A
monochromatic
#291141 #471D71 #662AA2 #853DCD #A36DD9

Accessibility & contrast

On white

8.69
#662AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#662AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA2#FFFFFF#000000##FFFFFF
##662AA21.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#594864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662aa2;
/* rgb */ color: rgb(102, 42, 162);
/* oklch */ color: oklch(43.6% 0.182 302.0);
Tailwind
colors: {
  custom: {
    50: '#9769be',
    500: '#662aa2',
    950: '#000000',
  },
}
SCSS
$custom: #662aa2;
$custom-light: #9769be;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa2",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 270,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.43605,
    "c": 0.18181,
    "h": 302
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#662AA2
secondary
#94C068
accent
#E24694
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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