#78166A#78166A

#78166A is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.160 H 334.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#78166A
RGBrgb(120, 22, 106)
HSLhsl(309, 69%, 28%)
HSVhsv(309, 82%, 47%)
CMYKcmyk(0%, 81.7%, 11.7%, 52.9%)
CIE-LABlab(28.40, 49.54, -24.76)
CIE-LCHlch(28.40, 55.38, 333.44°)
OKLaboklab(40.4% 0.1446 -0.0678)
OKLCHoklch(40.4% 0.16 334.9)
XYZxyz(10.6343, 5.6085, 14.1553)
Luminance0.0561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78166A #167824
analogous
#551678 #78166A #781639
triadic
#78166A #6A7816 #166A78
tetradic
#78166A #785516 #167824 #163978
square
#78166A #785516 #167824 #163978
split-complementary
#78166A #397816 #167855
monochromatic
#1A0517 #440D3C #78166A #AC1F98 #D92FC1

Accessibility & contrast

On white

9.90
#78166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#78166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78166A
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78166A#FFFFFF#000000##FFFFFF
##78166A1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6C
Deuteranopia (green-blind)
#3B4868
Tritanopia (blue-blind)
#7E1F3F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78166a;
/* rgb */ color: rgb(120, 22, 106);
/* oklch */ color: oklch(40.4% 0.160 334.9);
Tailwind
colors: {
  custom: {
    50: '#a26095',
    500: '#78166a',
    950: '#000000',
  },
}
SCSS
$custom: #78166a;
$custom-light: #a26095;
$custom-dark: #000000;
JSON
{
  "hex": "#78166a",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 308.571,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40403,
    "c": 0.1597,
    "h": 334.9
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#78166A
secondary
#3CAD4D
accent
#EC553C
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78166A

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

Preview Lab → · Contrast checker → · Palette generator →

#78166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva