#78156A#78156A

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

Color values

HEX#78156A
RGBrgb(120, 21, 106)
HSLhsl(308, 70%, 28%)
HSVhsv(308, 83%, 47%)
CMYKcmyk(0%, 82.5%, 11.7%, 52.9%)
CIE-LABlab(28.30, 49.83, -24.92)
CIE-LCHlch(28.30, 55.71, 333.43°)
OKLaboklab(40.33% 0.1455 -0.0682)
OKLCHoklch(40.33% 0.161 334.9)
XYZxyz(10.6156, 5.5710, 14.1491)
Luminance0.0557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156A #157823
analogous
#551578 #78156A #781538
triadic
#78156A #6A7815 #156A78
tetradic
#78156A #785515 #157823 #153878
square
#78156A #785515 #157823 #153878
split-complementary
#78156A #387815 #157855
monochromatic
#1A0517 #440C3C #78156A #AC1E98 #DA2DC2

Accessibility & contrast

On white

9.93
#78156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#78156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78156A
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156A#FFFFFF#000000##FFFFFF
##78156A1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78156a;
/* rgb */ color: rgb(120, 21, 106);
/* oklch */ color: oklch(40.3% 0.161 334.9);
Tailwind
colors: {
  custom: {
    50: '#a26095',
    500: '#78156a',
    950: '#000000',
  },
}
SCSS
$custom: #78156a;
$custom-light: #a26095;
$custom-dark: #000000;
JSON
{
  "hex": "#78156a",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 308.485,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40332,
    "c": 0.16065,
    "h": 334.9
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#78156A
secondary
#3BAE4B
accent
#ED543B
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78156A

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

Preview Lab → · Contrast checker → · Palette generator →

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