#78157E#78157E

#78157E is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.6% C 0.176 H 325.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#78157E
RGBrgb(120, 21, 126)
HSLhsl(297, 71%, 29%)
HSVhsv(297, 83%, 49%)
CMYKcmyk(4.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(29.50, 53.15, -35.76)
CIE-LCHlch(29.50, 64.06, 326.06°)
OKLaboklab(41.57% 0.1451 -0.0997)
OKLCHoklch(41.57% 0.176 325.5)
XYZxyz(11.7795, 6.0366, 20.2794)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78157E #1B7E15
analogous
#44157E #78157E #7E1550
triadic
#78157E #7E7815 #157E78
tetradic
#78157E #7E4415 #1B7E15 #15507E
square
#78157E #7E4415 #1B7E15 #15507E
split-complementary
#78157E #507E15 #157E44
monochromatic
#19041A #460C4A #78157E #AA1EB2 #D331DD

Accessibility & contrast

On white

9.51
#78157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#78157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78157E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78157E#FFFFFF#000000##FFFFFF
##78157E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#2F497C
Tritanopia (blue-blind)
#7B2A4B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78157e;
/* rgb */ color: rgb(120, 21, 126);
/* oklch */ color: oklch(41.6% 0.176 325.5);
Tailwind
colors: {
  custom: {
    50: '#a361a4',
    500: '#78157e',
    950: '#000000',
  },
}
SCSS
$custom: #78157e;
$custom-light: #a361a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78157e",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 296.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.17603,
    "h": 325.5
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#78157E
secondary
#43B33C
accent
#EE3A44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #78157E

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

Preview Lab → · Contrast checker → · Palette generator →

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