#78156D#78156D

#78156D is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.5% C 0.163 H 333.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#78156D
RGBrgb(120, 21, 109)
HSLhsl(307, 70%, 28%)
HSVhsv(307, 83%, 47%)
CMYKcmyk(0%, 82.5%, 9.2%, 52.9%)
CIE-LABlab(28.47, 50.30, -26.59)
CIE-LCHlch(28.47, 56.89, 332.14°)
OKLaboklab(40.51% 0.1456 -0.073)
OKLCHoklch(40.51% 0.163 333.4)
XYZxyz(10.7743, 5.6345, 14.9851)
Luminance0.0563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156D #157820
analogous
#521578 #78156D #78153B
triadic
#78156D #6D7815 #156D78
tetradic
#78156D #785215 #157820 #153B78
square
#78156D #785215 #157820 #153B78
split-complementary
#78156D #3B7815 #157852
monochromatic
#1A0518 #440C3E #78156D #AC1E9C #DA2DC7

Accessibility & contrast

On white

9.87
#78156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78156D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156D#FFFFFF#000000##FFFFFF
##78156D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103A6F
Deuteranopia (green-blind)
#39486B
Tritanopia (blue-blind)
#7E2141
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78156d;
/* rgb */ color: rgb(120, 21, 109);
/* oklch */ color: oklch(40.5% 0.163 333.4);
Tailwind
colors: {
  custom: {
    50: '#a26097',
    500: '#78156d',
    950: '#000000',
  },
}
SCSS
$custom: #78156d;
$custom-light: #a26097;
$custom-dark: #000000;
JSON
{
  "hex": "#78156d",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 306.667,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40506,
    "c": 0.16287,
    "h": 333.4
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#78156D
secondary
#3BAE48
accent
#ED4F3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78156D

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

Preview Lab → · Contrast checker → · Palette generator →

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