#78187B#78187B

#78187B is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.171 H 326.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#78187B
RGBrgb(120, 24, 123)
HSLhsl(298, 67%, 29%)
HSVhsv(298, 80%, 48%)
CMYKcmyk(2.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(29.61, 51.77, -33.70)
CIE-LCHlch(29.61, 61.78, 326.93°)
OKLaboklab(41.58% 0.1429 -0.0937)
OKLCHoklch(41.58% 0.171 326.8)
XYZxyz(11.6473, 6.0772, 19.2946)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187B #1B7B18
analogous
#47187B #78187B #7B184D
triadic
#78187B #7B7818 #187B78
tetradic
#78187B #7B4718 #1B7B18 #184D7B
square
#78187B #7B4718 #1B7B18 #184D7B
split-complementary
#78187B #4D7B18 #187B47
monochromatic
#19051A #460E48 #78187B #AA22AE #D336D8

Accessibility & contrast

On white

9.48
#78187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#78187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78187B
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187B#FFFFFF#000000##FFFFFF
##78187B1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#324A79
Tritanopia (blue-blind)
#7B2A49
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78187b;
/* rgb */ color: rgb(120, 24, 123);
/* oklch */ color: oklch(41.6% 0.171 326.8);
Tailwind
colors: {
  custom: {
    50: '#a262a2',
    500: '#78187b',
    950: '#000000',
  },
}
SCSS
$custom: #78187b;
$custom-light: #a262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78187b",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 298.182,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41584,
    "c": 0.17092,
    "h": 326.8
  },
  "luminance": 0.06076
}

Semantic roles & 50–950 ramp

primary
#78187B
secondary
#43B03F
accent
#EA3E43
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78187B

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

Preview Lab → · Contrast checker → · Palette generator →

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