#78156C#78156C

#78156C is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.162 H 333.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#78156C
RGBrgb(120, 21, 108)
HSLhsl(307, 70%, 28%)
HSVhsv(307, 83%, 47%)
CMYKcmyk(0%, 82.5%, 10%, 52.9%)
CIE-LABlab(28.41, 50.14, -26.03)
CIE-LCHlch(28.41, 56.50, 332.56°)
OKLaboklab(40.45% 0.1455 -0.0714)
OKLCHoklch(40.45% 0.162 333.9)
XYZxyz(10.7208, 5.6131, 14.7033)
Luminance0.0561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156C #157821
analogous
#531578 #78156C #78153A
triadic
#78156C #6C7815 #156C78
tetradic
#78156C #785315 #157821 #153A78
square
#78156C #785315 #157821 #153A78
split-complementary
#78156C #3A7815 #157853
monochromatic
#1A0517 #440C3D #78156C #AC1E9B #DA2DC5

Accessibility & contrast

On white

9.89
#78156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#78156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78156C
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156C#FFFFFF#000000##FFFFFF
##78156C1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113A6E
Deuteranopia (green-blind)
#39486A
Tritanopia (blue-blind)
#7E2040
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78156c;
/* rgb */ color: rgb(120, 21, 108);
/* oklch */ color: oklch(40.4% 0.162 333.9);
Tailwind
colors: {
  custom: {
    50: '#a26096',
    500: '#78156c',
    950: '#000000',
  },
}
SCSS
$custom: #78156c;
$custom-light: #a26096;
$custom-dark: #000000;
JSON
{
  "hex": "#78156c",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 307.273,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.16212,
    "h": 333.9
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#78156C
secondary
#3BAE49
accent
#ED503B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78156C

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

Preview Lab → · Contrast checker → · Palette generator →

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