#78158F#78158F

#78158F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.8% C 0.190 H 318.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#78158F
RGBrgb(120, 21, 143)
HSLhsl(289, 74%, 32%)
HSVhsv(289, 85%, 56%)
CMYKcmyk(16.1%, 85.3%, 0%, 43.9%)
CIE-LABlab(30.67, 56.25, -44.49)
CIE-LCHlch(30.67, 71.72, 321.66°)
OKLaboklab(42.77% 0.1427 -0.1252)
OKLCHoklch(42.77% 0.19 318.7)
XYZxyz(12.9711, 6.5132, 26.5552)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78158F #2C8F15
analogous
#3B158F #78158F #8F1569
triadic
#78158F #8F7815 #158F78
tetradic
#78158F #8F3B15 #2C8F15 #15698F
square
#78158F #8F3B15 #2C8F15 #15698F
split-complementary
#78158F #698F15 #158F3B
monochromatic
#1E0524 #4B0D5A #78158F #A51DC4 #C33CE2

Accessibility & contrast

On white

9.12
#78158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78158F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78158F#FFFFFF#000000##FFFFFF
##78158F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#773354
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78158f;
/* rgb */ color: rgb(120, 21, 143);
/* oklch */ color: oklch(42.8% 0.190 318.7);
Tailwind
colors: {
  custom: {
    50: '#a362b0',
    500: '#78158f',
    950: '#000000',
  },
}
SCSS
$custom: #78158f;
$custom-light: #a362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78158f",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 288.689,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.18989,
    "h": 318.7
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#78158F
secondary
#57C23E
accent
#F1375A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #78158F

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

Preview Lab → · Contrast checker → · Palette generator →

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