#66178B#66178B

#66178B is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.9% C 0.179 H 311.5°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#66178B
RGBrgb(102, 23, 139)
HSLhsl(281, 72%, 32%)
HSVhsv(281, 83%, 55%)
CMYKcmyk(26.6%, 83.5%, 0%, 45.5%)
CIE-LABlab(27.58, 51.66, -47.16)
CIE-LCHlch(27.58, 69.95, 317.61°)
OKLaboklab(39.92% 0.1185 -0.1337)
OKLCHoklch(39.92% 0.179 311.5)
XYZxyz(10.4452, 5.3019, 24.8942)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66178B #3C8B17
analogous
#2C178B #66178B #8B1776
triadic
#66178B #8B6617 #178B66
tetradic
#66178B #8B2C17 #3C8B17 #17768B
square
#66178B #8B2C17 #3C8B17 #17768B
split-complementary
#66178B #768B17 #178B2C
monochromatic
#190622 #3F0E56 #66178B #8D20C0 #AB3DDF

Accessibility & contrast

On white

10.19
#66178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#66178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66178B
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66178B#FFFFFF#000000##FFFFFF
##66178B1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #66178b;
/* rgb */ color: rgb(102, 23, 139);
/* oklch */ color: oklch(39.9% 0.179 311.5);
Tailwind
colors: {
  custom: {
    50: '#9660ae',
    500: '#66178b',
    950: '#000000',
  },
}
SCSS
$custom: #66178b;
$custom-light: #9660ae;
$custom-dark: #000000;
JSON
{
  "hex": "#66178b",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 280.862,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.17867,
    "h": 311.5
  },
  "luminance": 0.05302
}

Semantic roles & 50–950 ramp

primary
#66178B
secondary
#68BF3F
accent
#EE3973
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #66178B

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

Preview Lab → · Contrast checker → · Palette generator →

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