#662972#662972

#662972 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.0% C 0.132 H 320.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#662972
RGBrgb(102, 41, 114)
HSLhsl(290, 47%, 30%)
HSVhsv(290, 64%, 45%)
CMYKcmyk(10.5%, 64%, 0%, 55.3%)
CIE-LABlab(28.45, 38.89, -30.02)
CIE-LCHlch(28.45, 49.13, 322.34°)
OKLaboklab(39.98% 0.1023 -0.0836)
OKLCHoklch(39.98% 0.132 320.7)
XYZxyz(9.3093, 5.6260, 16.5119)
Luminance0.0563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662972 #357229
analogous
#412972 #662972 #722959
triadic
#662972 #726629 #297266
tetradic
#662972 #724129 #357229 #295972
square
#662972 #724129 #357229 #295972
split-complementary
#662972 #597229 #297241
monochromatic
#150918 #3E1945 #662972 #8E399F #AF54C1

Accessibility & contrast

On white

9.88
#662972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#662972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662972
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662972#FFFFFF#000000##FFFFFF
##6629721.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F74
Deuteranopia (green-blind)
#304570
Tritanopia (blue-blind)
#673549
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662972;
/* rgb */ color: rgb(102, 41, 114);
/* oklch */ color: oklch(40.0% 0.132 320.7);
Tailwind
colors: {
  custom: {
    50: '#94679b',
    500: '#662972',
    950: '#000000',
  },
}
SCSS
$custom: #662972;
$custom-light: #94679b;
$custom-dark: #000000;
JSON
{
  "hex": "#662972",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 290.137,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.13216,
    "h": 320.7
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#662972
secondary
#60A453
accent
#D75167
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #662972

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

Preview Lab → · Contrast checker → · Palette generator →

#662972 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva