#66178D#66178D

#66178D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.1% C 0.181 H 310.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#66178D
RGBrgb(102, 23, 141)
HSLhsl(280, 72%, 32%)
HSVhsv(280, 84%, 55%)
CMYKcmyk(27.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(27.74, 52.09, -48.14)
CIE-LCHlch(27.74, 70.93, 317.25°)
OKLaboklab(40.08% 0.118 -0.1366)
OKLCHoklch(40.08% 0.181 310.8)
XYZxyz(10.5927, 5.3609, 25.6709)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66178D #3E8D17
analogous
#2B178D #66178D #8D1779
triadic
#66178D #8D6617 #178D66
tetradic
#66178D #8D2B17 #3E8D17 #17798D
square
#66178D #8D2B17 #3E8D17 #17798D
split-complementary
#66178D #798D17 #178D2B
monochromatic
#1A0624 #400E58 #66178D #8C20C2 #AA3FE0

Accessibility & contrast

On white

10.13
#66178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#66178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66178D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66178D#FFFFFF#000000##FFFFFF
##66178D1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #66178d;
/* rgb */ color: rgb(102, 23, 141);
/* oklch */ color: oklch(40.1% 0.181 310.8);
Tailwind
colors: {
  custom: {
    50: '#9660af',
    500: '#66178d',
    950: '#000000',
  },
}
SCSS
$custom: #66178d;
$custom-light: #9660af;
$custom-dark: #000000;
JSON
{
  "hex": "#66178d",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 280.169,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40078,
    "c": 0.18052,
    "h": 310.8
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#66178D
secondary
#6AC040
accent
#EF3975
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #66178D

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

Preview Lab → · Contrast checker → · Palette generator →

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