#66158D#66158D

#66158D is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.9% C 0.182 H 311.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#66158D
RGBrgb(102, 21, 141)
HSLhsl(281, 74%, 32%)
HSVhsv(281, 85%, 55%)
CMYKcmyk(27.7%, 85.1%, 0%, 44.7%)
CIE-LABlab(27.53, 52.70, -48.48)
CIE-LCHlch(27.53, 71.60, 317.39°)
OKLaboklab(39.93% 0.1194 -0.1376)
OKLCHoklch(39.93% 0.182 311)
XYZxyz(10.5544, 5.2845, 25.6582)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66158D #3C8D15
analogous
#2A158D #66158D #8D1578
triadic
#66158D #8D6615 #158D66
tetradic
#66158D #8D2A15 #3C8D15 #15788D
square
#66158D #8D2A15 #3C8D15 #15788D
split-complementary
#66158D #788D15 #158D2A
monochromatic
#190522 #3F0D58 #66158D #8D1DC2 #AB3BE2

Accessibility & contrast

On white

10.21
#66158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#66158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66158D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66158D#FFFFFF#000000##FFFFFF
##66158D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#613553
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #66158d;
/* rgb */ color: rgb(102, 21, 141);
/* oklch */ color: oklch(39.9% 0.182 311.0);
Tailwind
colors: {
  custom: {
    50: '#965faf',
    500: '#66158d',
    950: '#000000',
  },
}
SCSS
$custom: #66158d;
$custom-light: #965faf;
$custom-dark: #000000;
JSON
{
  "hex": "#66158d",
  "rgb": {
    "r": 102,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 280.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.1822,
    "h": 311
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#66158D
secondary
#68C13D
accent
#F13773
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #66158D

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

Preview Lab → · Contrast checker → · Palette generator →

#66158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva