#66157E#66157E

#66157E is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.7% C 0.169 H 316.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#66157E
RGBrgb(102, 21, 126)
HSLhsl(286, 71%, 29%)
HSVhsv(286, 83%, 49%)
CMYKcmyk(19%, 83.3%, 0%, 50.6%)
CIE-LABlab(26.36, 49.58, -40.99)
CIE-LCHlch(26.36, 64.33, 320.42°)
OKLaboklab(38.74% 0.1229 -0.1156)
OKLCHoklch(38.74% 0.169 316.8)
XYZxyz(9.5130, 4.8679, 20.1731)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66157E #2D7E15
analogous
#32157E #66157E #7E1562
triadic
#66157E #7E6615 #157E66
tetradic
#66157E #7E3215 #2D7E15 #15627E
square
#66157E #7E3215 #2D7E15 #15627E
split-complementary
#66157E #627E15 #157E32
monochromatic
#15041A #3C0C4A #66157E #901EB2 #B531DD

Accessibility & contrast

On white

10.64
#66157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#66157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66157E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66157E#FFFFFF#000000##FFFFFF
##66157E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#15417C
Tritanopia (blue-blind)
#652E4A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #66157e;
/* rgb */ color: rgb(102, 21, 126);
/* oklch */ color: oklch(38.7% 0.169 316.8);
Tailwind
colors: {
  custom: {
    50: '#965ea4',
    500: '#66157e',
    950: '#000000',
  },
}
SCSS
$custom: #66157e;
$custom-light: #965ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#66157e",
  "rgb": {
    "r": 102,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 286.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38742,
    "c": 0.16874,
    "h": 316.8
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#66157E
secondary
#57B33C
accent
#EE3A63
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #66157E

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

Preview Lab → · Contrast checker → · Palette generator →

#66157E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva