#78187D#78187D

#78187D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.173 H 325.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#78187D
RGBrgb(120, 24, 125)
HSLhsl(297, 68%, 29%)
HSVhsv(297, 81%, 49%)
CMYKcmyk(4%, 80.8%, 0%, 51%)
CIE-LABlab(29.73, 52.12, -34.77)
CIE-LCHlch(29.73, 62.65, 326.30°)
OKLaboklab(41.72% 0.1428 -0.0968)
OKLCHoklch(41.72% 0.173 325.9)
XYZxyz(11.7738, 6.1278, 19.9607)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187D #1D7D18
analogous
#46187D #78187D #7D1850
triadic
#78187D #7D7818 #187D78
tetradic
#78187D #7D4618 #1D7D18 #18507D
square
#78187D #7D4618 #1D7D18 #18507D
split-complementary
#78187D #507D18 #187D46
monochromatic
#19051A #470E4A #78187D #A922B0 #D137D9

Accessibility & contrast

On white

9.44
#78187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#78187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78187D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187D#FFFFFF#000000##FFFFFF
##78187D1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#7B2B4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78187d;
/* rgb */ color: rgb(120, 24, 125);
/* oklch */ color: oklch(41.7% 0.173 325.9);
Tailwind
colors: {
  custom: {
    50: '#a262a3',
    500: '#78187d',
    950: '#000000',
  },
}
SCSS
$custom: #78187d;
$custom-light: #a262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78187d",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 297.03,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41715,
    "c": 0.17253,
    "h": 325.9
  },
  "luminance": 0.06127
}

Semantic roles & 50–950 ramp

primary
#78187D
secondary
#45B23F
accent
#EB3D46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78187D

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

Preview Lab → · Contrast checker → · Palette generator →

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