#66157F#66157F

#66157F is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.8% C 0.170 H 316.3°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#66157F
RGBrgb(102, 21, 127)
HSLhsl(286, 72%, 29%)
HSVhsv(286, 83%, 50%)
CMYKcmyk(19.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(26.43, 49.78, -41.50)
CIE-LCHlch(26.43, 64.81, 320.19°)
OKLaboklab(38.82% 0.1227 -0.1171)
OKLCHoklch(38.82% 0.17 316.3)
XYZxyz(9.5778, 4.8938, 20.5146)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66157F #2E7F15
analogous
#31157F #66157F #7F1563
triadic
#66157F #7F6615 #157F66
tetradic
#66157F #7F3115 #2E7F15 #15637F
square
#66157F #7F3115 #2E7F15 #15637F
split-complementary
#66157F #637F15 #157F31
monochromatic
#15041A #3C0C4A #66157F #901EB4 #B531DD

Accessibility & contrast

On white

10.61
#66157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#66157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66157F
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66157F#FFFFFF#000000##FFFFFF
##66157F1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#14417D
Tritanopia (blue-blind)
#642F4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #66157f;
/* rgb */ color: rgb(102, 21, 127);
/* oklch */ color: oklch(38.8% 0.170 316.3);
Tailwind
colors: {
  custom: {
    50: '#965ea5',
    500: '#66157f',
    950: '#000000',
  },
}
SCSS
$custom: #66157f;
$custom-light: #965ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#66157f",
  "rgb": {
    "r": 102,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 285.849,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38819,
    "c": 0.16962,
    "h": 316.3
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#66157F
secondary
#58B43C
accent
#EE3964
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #66157F

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

Preview Lab → · Contrast checker → · Palette generator →

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