#78158E#78158E

#78158E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.189 H 319.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#78158E
RGBrgb(120, 21, 142)
HSLhsl(289, 74%, 32%)
HSVhsv(289, 85%, 56%)
CMYKcmyk(15.5%, 85.2%, 0%, 44.3%)
CIE-LABlab(30.60, 56.06, -43.99)
CIE-LCHlch(30.60, 71.26, 321.88°)
OKLaboklab(42.69% 0.1429 -0.1238)
OKLCHoklch(42.69% 0.189 319.1)
XYZxyz(12.8957, 6.4831, 26.1580)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78158E #2B8E15
analogous
#3C158E #78158E #8E1568
triadic
#78158E #8E7815 #158E78
tetradic
#78158E #8E3C15 #2B8E15 #15688E
square
#78158E #8E3C15 #2B8E15 #15688E
split-complementary
#78158E #688E15 #158E3C
monochromatic
#1E0523 #4B0D59 #78158E #A51DC3 #C43BE2

Accessibility & contrast

On white

9.14
#78158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#78158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78158E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78158E#FFFFFF#000000##FFFFFF
##78158E1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#1F4B8B
Tritanopia (blue-blind)
#783254
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78158e;
/* rgb */ color: rgb(120, 21, 142);
/* oklch */ color: oklch(42.7% 0.189 319.1);
Tailwind
colors: {
  custom: {
    50: '#a362b0',
    500: '#78158e',
    950: '#000000',
  },
}
SCSS
$custom: #78158e;
$custom-light: #a362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78158e",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 289.091,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42693,
    "c": 0.18906,
    "h": 319.1
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#78158E
secondary
#55C23D
accent
#F13759
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78158E

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

Preview Lab → · Contrast checker → · Palette generator →

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