#66178A#66178A

#66178A is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.178 H 311.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#66178A
RGBrgb(102, 23, 138)
HSLhsl(281, 71%, 32%)
HSVhsv(281, 83%, 54%)
CMYKcmyk(26.1%, 83.3%, 0%, 45.9%)
CIE-LABlab(27.50, 51.45, -46.67)
CIE-LCHlch(27.50, 69.46, 317.79°)
OKLaboklab(39.84% 0.1188 -0.1323)
OKLCHoklch(39.84% 0.178 311.9)
XYZxyz(10.3725, 5.2728, 24.5112)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66178A #3B8A17
analogous
#2C178A #66178A #8A1775
triadic
#66178A #8A6617 #178A66
tetradic
#66178A #8A2C17 #3B8A17 #17758A
square
#66178A #8A2C17 #3B8A17 #17758A
split-complementary
#66178A #758A17 #178A2C
monochromatic
#180621 #3F0E56 #66178A #8D20BE #AC3DDF

Accessibility & contrast

On white

10.22
#66178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#66178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66178A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66178A#FFFFFF#000000##FFFFFF
##66178A1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #66178a;
/* rgb */ color: rgb(102, 23, 138);
/* oklch */ color: oklch(39.8% 0.178 311.9);
Tailwind
colors: {
  custom: {
    50: '#9660ad',
    500: '#66178a',
    950: '#000000',
  },
}
SCSS
$custom: #66178a;
$custom-light: #9660ad;
$custom-dark: #000000;
JSON
{
  "hex": "#66178a",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 281.217,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.17776,
    "h": 311.9
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#66178A
secondary
#67BE3F
accent
#EE3A72
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #66178A

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

Preview Lab → · Contrast checker → · Palette generator →

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