#78157B#78157B

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

Color values

HEX#78157B
RGBrgb(120, 21, 123)
HSLhsl(298, 71%, 28%)
HSVhsv(298, 83%, 48%)
CMYKcmyk(2.4%, 82.9%, 0%, 51.8%)
CIE-LABlab(29.31, 52.62, -34.17)
CIE-LCHlch(29.31, 62.75, 327.00°)
OKLaboklab(41.38% 0.1453 -0.0951)
OKLCHoklch(41.38% 0.174 326.8)
XYZxyz(11.5888, 5.9603, 19.2751)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78157B #187B15
analogous
#45157B #78157B #7B154B
triadic
#78157B #7B7815 #157B78
tetradic
#78157B #7B4515 #187B15 #154B7B
square
#78157B #7B4515 #187B15 #154B7B
split-complementary
#78157B #4B7B15 #157B45
monochromatic
#19041A #450C47 #78157B #AB1EAF #D62FDB

Accessibility & contrast

On white

9.58
#78157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#78157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78157B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78157B#FFFFFF#000000##FFFFFF
##78157B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#314979
Tritanopia (blue-blind)
#7C2849
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78157b;
/* rgb */ color: rgb(120, 21, 123);
/* oklch */ color: oklch(41.4% 0.174 326.8);
Tailwind
colors: {
  custom: {
    50: '#a361a2',
    500: '#78157b',
    950: '#000000',
  },
}
SCSS
$custom: #78157b;
$custom-light: #a361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78157b",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 298.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41375,
    "c": 0.17365,
    "h": 326.8
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#78157B
secondary
#3FB03B
accent
#EE3A3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78157B

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

Preview Lab → · Contrast checker → · Palette generator →

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