#66178C#66178C

#66178C is a dark, vivid purple. Relative luminance 0.053; OKLCH L 40.0% C 0.180 H 311.2°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#66178C
RGBrgb(102, 23, 140)
HSLhsl(281, 72%, 32%)
HSVhsv(281, 84%, 55%)
CMYKcmyk(27.1%, 83.6%, 0%, 45.1%)
CIE-LABlab(27.66, 51.87, -47.65)
CIE-LCHlch(27.66, 70.44, 317.43°)
OKLaboklab(40% 0.1183 -0.1352)
OKLCHoklch(40% 0.18 311.2)
XYZxyz(10.5186, 5.3313, 25.2808)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66178C #3D8C17
analogous
#2C178C #66178C #8C1778
triadic
#66178C #8C6617 #178C66
tetradic
#66178C #8C2C17 #3D8C17 #17788C
square
#66178C #8C2C17 #3D8C17 #17788C
split-complementary
#66178C #788C17 #178C2C
monochromatic
#190623 #400E57 #66178C #8C20C1 #AB3EDF

Accessibility & contrast

On white

10.16
#66178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #66178C
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66178C#FFFFFF#000000##FFFFFF
##66178C1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #66178c;
/* rgb */ color: rgb(102, 23, 140);
/* oklch */ color: oklch(40.0% 0.180 311.2);
Tailwind
colors: {
  custom: {
    50: '#9660ae',
    500: '#66178c',
    950: '#000000',
  },
}
SCSS
$custom: #66178c;
$custom-light: #9660ae;
$custom-dark: #000000;
JSON
{
  "hex": "#66178c",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 280.513,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.17959,
    "h": 311.2
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#66178C
secondary
#69BF3F
accent
#EF3974
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #66178C

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

Preview Lab → · Contrast checker → · Palette generator →

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