#78156E#78156E

#78156E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.164 H 332.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#78156E
RGBrgb(120, 21, 110)
HSLhsl(306, 70%, 28%)
HSVhsv(306, 83%, 47%)
CMYKcmyk(0%, 82.5%, 8.3%, 52.9%)
CIE-LABlab(28.53, 50.46, -27.14)
CIE-LCHlch(28.53, 57.29, 331.73°)
OKLaboklab(40.57% 0.1456 -0.0746)
OKLCHoklch(40.57% 0.164 332.9)
XYZxyz(10.8284, 5.6561, 15.2703)
Luminance0.0566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156E #15781F
analogous
#511578 #78156E #78153C
triadic
#78156E #6E7815 #156E78
tetradic
#78156E #785115 #15781F #153C78
square
#78156E #785115 #15781F #153C78
split-complementary
#78156E #3C7815 #157851
monochromatic
#1A0518 #440C3E #78156E #AC1E9E #DA2DC9

Accessibility & contrast

On white

9.85
#78156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#78156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78156E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156E#FFFFFF#000000##FFFFFF
##78156E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A70
Deuteranopia (green-blind)
#38486C
Tritanopia (blue-blind)
#7E2141
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78156e;
/* rgb */ color: rgb(120, 21, 110);
/* oklch */ color: oklch(40.6% 0.164 332.9);
Tailwind
colors: {
  custom: {
    50: '#a26098',
    500: '#78156e',
    950: '#000000',
  },
}
SCSS
$custom: #78156e;
$custom-light: #a26098;
$custom-dark: #000000;
JSON
{
  "hex": "#78156e",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 306.061,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40565,
    "c": 0.16362,
    "h": 332.9
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#78156E
secondary
#3BAE47
accent
#ED4D3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78156E

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

Preview Lab → · Contrast checker → · Palette generator →

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