#66178F#66178F

#66178F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.182 H 310.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#66178F
RGBrgb(102, 23, 143)
HSLhsl(280, 72%, 33%)
HSVhsv(280, 84%, 56%)
CMYKcmyk(28.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(27.90, 52.52, -49.12)
CIE-LCHlch(27.90, 71.90, 316.92°)
OKLaboklab(40.24% 0.1175 -0.1395)
OKLCHoklch(40.24% 0.182 310.1)
XYZxyz(10.7428, 5.4210, 26.4617)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66178F #408F17
analogous
#2A178F #66178F #8F177C
triadic
#66178F #8F6617 #178F66
tetradic
#66178F #8F2A17 #408F17 #177C8F
square
#66178F #8F2A17 #408F17 #177C8F
split-complementary
#66178F #7C8F17 #178F2A
monochromatic
#1B0626 #400F5A #66178F #8C1FC4 #AA40E0

Accessibility & contrast

On white

10.08
#66178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#66178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66178F
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66178F#FFFFFF#000000##FFFFFF
##66178F1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#603755
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #66178f;
/* rgb */ color: rgb(102, 23, 143);
/* oklch */ color: oklch(40.2% 0.182 310.1);
Tailwind
colors: {
  custom: {
    50: '#9760b1',
    500: '#66178f',
    950: '#000000',
  },
}
SCSS
$custom: #66178f;
$custom-light: #9760b1;
$custom-dark: #000000;
JSON
{
  "hex": "#66178f",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 279.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.18235,
    "h": 310.1
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#66178F
secondary
#6DC141
accent
#EF3977
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #66178F

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

Preview Lab → · Contrast checker → · Palette generator →

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