#78157D#78157D

#78157D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.175 H 325.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#78157D
RGBrgb(120, 21, 125)
HSLhsl(297, 71%, 29%)
HSVhsv(297, 83%, 49%)
CMYKcmyk(4%, 83.2%, 0%, 51%)
CIE-LABlab(29.44, 52.97, -35.23)
CIE-LCHlch(29.44, 63.62, 326.37°)
OKLaboklab(41.51% 0.1452 -0.0981)
OKLCHoklch(41.51% 0.175 325.9)
XYZxyz(11.7153, 6.0109, 19.9412)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78157D #1A7D15
analogous
#44157D #78157D #7D154E
triadic
#78157D #7D7815 #157D78
tetradic
#78157D #7D4415 #1A7D15 #154E7D
square
#78157D #7D4415 #1A7D15 #154E7D
split-complementary
#78157D #4E7D15 #157D44
monochromatic
#19041A #460C49 #78157D #AA1EB1 #D430DC

Accessibility & contrast

On white

9.54
#78157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#78157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78157D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78157D#FFFFFF#000000##FFFFFF
##78157D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#2F497B
Tritanopia (blue-blind)
#7B294A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78157d;
/* rgb */ color: rgb(120, 21, 125);
/* oklch */ color: oklch(41.5% 0.175 325.9);
Tailwind
colors: {
  custom: {
    50: '#a361a3',
    500: '#78157d',
    950: '#000000',
  },
}
SCSS
$custom: #78157d;
$custom-light: #a361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78157d",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 297.115,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41507,
    "c": 0.17524,
    "h": 325.9
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

primary
#78157D
secondary
#41B23C
accent
#EE3A42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #78157D

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

Preview Lab → · Contrast checker → · Palette generator →

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