#78187A#78187A

#78187A is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.170 H 327.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#78187A
RGBrgb(120, 24, 122)
HSLhsl(299, 67%, 29%)
HSVhsv(299, 80%, 48%)
CMYKcmyk(1.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(29.54, 51.60, -33.17)
CIE-LCHlch(29.54, 61.34, 327.26°)
OKLaboklab(41.52% 0.143 -0.0921)
OKLCHoklch(41.52% 0.17 327.2)
XYZxyz(11.5850, 6.0523, 18.9666)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187A #1A7A18
analogous
#47187A #78187A #7A184B
triadic
#78187A #7A7818 #187A78
tetradic
#78187A #7A4718 #1A7A18 #184B7A
square
#78187A #7A4718 #1A7A18 #184B7A
split-complementary
#78187A #4B7A18 #187A47
monochromatic
#19051A #460E47 #78187A #AA22AD #D435D7

Accessibility & contrast

On white

9.50
#78187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#78187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78187A
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187A#FFFFFF#000000##FFFFFF
##78187A1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#324A78
Tritanopia (blue-blind)
#7C2949
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78187a;
/* rgb */ color: rgb(120, 24, 122);
/* oklch */ color: oklch(41.5% 0.170 327.2);
Tailwind
colors: {
  custom: {
    50: '#a262a1',
    500: '#78187a',
    950: '#000000',
  },
}
SCSS
$custom: #78187a;
$custom-light: #a262a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78187a",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 298.776,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.4152,
    "c": 0.1701,
    "h": 327.2
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#78187A
secondary
#41AF3F
accent
#EA3E41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #78187A

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

Preview Lab → · Contrast checker → · Palette generator →

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