#78157C#78157C

#78157C is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.174 H 326.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#78157C
RGBrgb(120, 21, 124)
HSLhsl(298, 71%, 28%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(3.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(29.38, 52.80, -34.70)
CIE-LCHlch(29.38, 63.18, 326.68°)
OKLaboklab(41.44% 0.1453 -0.0966)
OKLCHoklch(41.44% 0.174 326.4)
XYZxyz(11.6518, 5.9855, 19.6065)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78157C #197C15
analogous
#44157C #78157C #7C154C
triadic
#78157C #7C7815 #157C78
tetradic
#78157C #7C4415 #197C15 #154C7C
square
#78157C #7C4415 #197C15 #154C7C
split-complementary
#78157C #4C7C15 #157C44
monochromatic
#19041A #450C48 #78157C #AB1EB0 #D530DC

Accessibility & contrast

On white

9.56
#78157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78157C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78157C#FFFFFF#000000##FFFFFF
##78157C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#30497A
Tritanopia (blue-blind)
#7B2949
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78157c;
/* rgb */ color: rgb(120, 21, 124);
/* oklch */ color: oklch(41.4% 0.174 326.4);
Tailwind
colors: {
  custom: {
    50: '#a361a2',
    500: '#78157c',
    950: '#000000',
  },
}
SCSS
$custom: #78157c;
$custom-light: #a361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78157c",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 297.67,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41441,
    "c": 0.17444,
    "h": 326.4
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#78157C
secondary
#40B13C
accent
#EE3A41
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78157C

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

Preview Lab → · Contrast checker → · Palette generator →

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