#66118E#66118E

#66118E is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.8% C 0.186 H 310.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#66118E
RGBrgb(102, 17, 142)
HSLhsl(281, 79%, 31%)
HSVhsv(281, 88%, 56%)
CMYKcmyk(28.2%, 88%, 0%, 44.3%)
CIE-LABlab(27.24, 54.01, -49.58)
CIE-LCHlch(27.24, 73.31, 317.45°)
OKLaboklab(39.76% 0.1217 -0.1408)
OKLCHoklch(39.76% 0.186 310.9)
XYZxyz(10.5615, 5.1789, 26.0292)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66118E #398E11
analogous
#27118E #66118E #8E1177
triadic
#66118E #8E6611 #118E66
tetradic
#66118E #8E2711 #398E11 #11778E
square
#66118E #8E2711 #398E11 #11778E
split-complementary
#66118E #778E11 #118E27
monochromatic
#170421 #3F0A57 #66118E #8D18C5 #AD33E7

Accessibility & contrast

On white

10.32
#66118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#66118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66118E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66118E#FFFFFF#000000##FFFFFF
##66118E1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#603453
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #66118e;
/* rgb */ color: rgb(102, 17, 142);
/* oklch */ color: oklch(39.8% 0.186 310.9);
Tailwind
colors: {
  custom: {
    50: '#975eb0',
    500: '#66118e',
    950: '#000000',
  },
}
SCSS
$custom: #66118e;
$custom-light: #975eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#66118e",
  "rgb": {
    "r": 102,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 280.8,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39756,
    "c": 0.18612,
    "h": 310.9
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#66118E
secondary
#65C238
accent
#F53371
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #66118E

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

Preview Lab → · Contrast checker → · Palette generator →

#66118E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva