#66158A#66158A

#66158A is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.7% C 0.179 H 312.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#66158A
RGBrgb(102, 21, 138)
HSLhsl(282, 74%, 31%)
HSVhsv(282, 85%, 54%)
CMYKcmyk(26.1%, 84.8%, 0%, 45.9%)
CIE-LABlab(27.29, 52.06, -47.01)
CIE-LCHlch(27.29, 70.15, 317.92°)
OKLaboklab(39.69% 0.1202 -0.1333)
OKLCHoklch(39.69% 0.179 312.1)
XYZxyz(10.3342, 5.1964, 24.4984)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66158A #398A15
analogous
#2B158A #66158A #8A1573
triadic
#66158A #8A6615 #158A66
tetradic
#66158A #8A2B15 #398A15 #15738A
square
#66158A #8A2B15 #398A15 #15738A
split-complementary
#66158A #738A15 #158A2B
monochromatic
#170520 #3F0D55 #66158A #8D1DBF #AD39E1

Accessibility & contrast

On white

10.30
#66158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#66158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66158A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66158A#FFFFFF#000000##FFFFFF
##66158A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#613451
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #66158a;
/* rgb */ color: rgb(102, 21, 138);
/* oklch */ color: oklch(39.7% 0.179 312.1);
Tailwind
colors: {
  custom: {
    50: '#965fad',
    500: '#66158a',
    950: '#000000',
  },
}
SCSS
$custom: #66158a;
$custom-light: #965fad;
$custom-dark: #000000;
JSON
{
  "hex": "#66158a",
  "rgb": {
    "r": 102,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 281.538,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39687,
    "c": 0.17949,
    "h": 312.1
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#66158A
secondary
#65BE3D
accent
#F03870
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #66158A

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

Preview Lab → · Contrast checker → · Palette generator →

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