#78158D#78158D

#78158D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.188 H 319.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#78158D
RGBrgb(120, 21, 141)
HSLhsl(290, 74%, 32%)
HSVhsv(290, 85%, 55%)
CMYKcmyk(14.9%, 85.1%, 0%, 44.7%)
CIE-LABlab(30.53, 55.87, -43.48)
CIE-LCHlch(30.53, 70.80, 322.11°)
OKLaboklab(42.62% 0.1431 -0.1223)
OKLCHoklch(42.62% 0.188 319.5)
XYZxyz(12.8210, 6.4532, 25.7644)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78158D #2A8D15
analogous
#3C158D #78158D #8D1566
triadic
#78158D #8D7815 #158D78
tetradic
#78158D #8D3C15 #2A8D15 #15668D
square
#78158D #8D3C15 #2A8D15 #15668D
split-complementary
#78158D #668D15 #158D3C
monochromatic
#1D0522 #4B0D58 #78158D #A51DC2 #C53BE2

Accessibility & contrast

On white

9.17
#78158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#78158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78158D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78158D#FFFFFF#000000##FFFFFF
##78158D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#783253
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78158d;
/* rgb */ color: rgb(120, 21, 141);
/* oklch */ color: oklch(42.6% 0.188 319.5);
Tailwind
colors: {
  custom: {
    50: '#a362af',
    500: '#78158d',
    950: '#000000',
  },
}
SCSS
$custom: #78158d;
$custom-light: #a362af;
$custom-dark: #000000;
JSON
{
  "hex": "#78158d",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 289.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4262,
    "c": 0.18824,
    "h": 319.5
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#78158D
secondary
#54C13D
accent
#F13758
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78158D

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

Preview Lab → · Contrast checker → · Palette generator →

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