#662A71#662A71

#662A71 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.1% C 0.130 H 321.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#662A71
RGBrgb(102, 42, 113)
HSLhsl(291, 46%, 30%)
HSVhsv(291, 63%, 44%)
CMYKcmyk(9.7%, 62.8%, 0%, 55.7%)
CIE-LABlab(28.57, 38.18, -29.18)
CIE-LCHlch(28.57, 48.05, 322.60°)
OKLaboklab(40.05% 0.1009 -0.0812)
OKLCHoklch(40.05% 0.13 321.2)
XYZxyz(9.2878, 5.6734, 16.2254)
Luminance0.0567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662A71 #35712A
analogous
#422A71 #662A71 #712A58
triadic
#662A71 #71662A #2A7166
tetradic
#662A71 #71422A #35712A #2A5871
square
#662A71 #71422A #35712A #2A5871
split-complementary
#662A71 #58712A #2A7142
monochromatic
#150918 #3E1944 #662A71 #8E3B9E #AF55C0

Accessibility & contrast

On white

9.84
#662A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#662A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662A71
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662A71#FFFFFF#000000##FFFFFF
##662A711.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#31466F
Tritanopia (blue-blind)
#673549
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662a71;
/* rgb */ color: rgb(102, 42, 113);
/* oklch */ color: oklch(40.1% 0.130 321.2);
Tailwind
colors: {
  custom: {
    50: '#94689a',
    500: '#662a71',
    950: '#000000',
  },
}
SCSS
$custom: #662a71;
$custom-light: #94689a;
$custom-dark: #000000;
JSON
{
  "hex": "#662a71",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 290.704,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40051,
    "c": 0.12955,
    "h": 321.2
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#662A71
secondary
#60A354
accent
#D55267
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #662A71

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

Preview Lab → · Contrast checker → · Palette generator →

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