#78187C#78187C

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

Color values

HEX#78187C
RGBrgb(120, 24, 124)
HSLhsl(298, 68%, 29%)
HSVhsv(298, 81%, 49%)
CMYKcmyk(3.2%, 80.6%, 0%, 51.4%)
CIE-LABlab(29.67, 51.95, -34.24)
CIE-LCHlch(29.67, 62.21, 326.61°)
OKLaboklab(41.65% 0.1429 -0.0952)
OKLCHoklch(41.65% 0.172 326.3)
XYZxyz(11.7102, 6.1024, 19.6260)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187C #1C7C18
analogous
#46187C #78187C #7C184E
triadic
#78187C #7C7818 #187C78
tetradic
#78187C #7C4618 #1C7C18 #184E7C
square
#78187C #7C4618 #1C7C18 #184E7C
split-complementary
#78187C #4E7C18 #187C46
monochromatic
#19051A #460E49 #78187C #AA22AF #D236D8

Accessibility & contrast

On white

9.46
#78187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78187C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187C#FFFFFF#000000##FFFFFF
##78187C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#314A7A
Tritanopia (blue-blind)
#7B2A4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78187c;
/* rgb */ color: rgb(120, 24, 124);
/* oklch */ color: oklch(41.6% 0.172 326.3);
Tailwind
colors: {
  custom: {
    50: '#a262a2',
    500: '#78187c',
    950: '#000000',
  },
}
SCSS
$custom: #78187c;
$custom-light: #a262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78187c",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 297.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41649,
    "c": 0.17172,
    "h": 326.3
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#78187C
secondary
#44B13F
accent
#EA3D44
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78187C

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

Preview Lab → · Contrast checker → · Palette generator →

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