#78156B#78156B

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

Color values

HEX#78156B
RGBrgb(120, 21, 107)
HSLhsl(308, 70%, 28%)
HSVhsv(308, 83%, 47%)
CMYKcmyk(0%, 82.5%, 10.8%, 52.9%)
CIE-LABlab(28.36, 49.98, -25.48)
CIE-LCHlch(28.36, 56.10, 332.99°)
OKLaboklab(40.39% 0.1455 -0.0698)
OKLCHoklch(40.39% 0.161 334.4)
XYZxyz(10.6679, 5.5919, 14.4246)
Luminance0.0559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156B #157822
analogous
#541578 #78156B #781539
triadic
#78156B #6B7815 #156B78
tetradic
#78156B #785415 #157822 #153978
square
#78156B #785415 #157822 #153978
split-complementary
#78156B #397815 #157854
monochromatic
#1A0517 #440C3D #78156B #AC1E99 #DA2DC4

Accessibility & contrast

On white

9.91
#78156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78156B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156B#FFFFFF#000000##FFFFFF
##78156B1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#3A4869
Tritanopia (blue-blind)
#7E1F40
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78156b;
/* rgb */ color: rgb(120, 21, 107);
/* oklch */ color: oklch(40.4% 0.161 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26095',
    500: '#78156b',
    950: '#000000',
  },
}
SCSS
$custom: #78156b;
$custom-light: #a26095;
$custom-dark: #000000;
JSON
{
  "hex": "#78156b",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 307.879,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40389,
    "c": 0.16139,
    "h": 334.4
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#78156B
secondary
#3BAE4A
accent
#ED523B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78156B

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

Preview Lab → · Contrast checker → · Palette generator →

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