#78187F#78187F

#78187F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.174 H 325.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#78187F
RGBrgb(120, 24, 127)
HSLhsl(296, 68%, 30%)
HSVhsv(296, 81%, 50%)
CMYKcmyk(5.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(29.86, 52.48, -35.82)
CIE-LCHlch(29.86, 63.54, 325.68°)
OKLaboklab(41.85% 0.1427 -0.0999)
OKLCHoklch(41.85% 0.174 325)
XYZxyz(11.9028, 6.1794, 20.6404)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187F #1F7F18
analogous
#44187F #78187F #7F1853
triadic
#78187F #7F7818 #187F78
tetradic
#78187F #7F4418 #1F7F18 #18537F
square
#78187F #7F4418 #1F7F18 #18537F
split-complementary
#78187F #537F18 #187F44
monochromatic
#18051A #470E4C #78187F #A922B2 #CE38D9

Accessibility & contrast

On white

9.39
#78187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#78187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78187F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187F#FFFFFF#000000##FFFFFF
##78187F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#7B2C4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78187f;
/* rgb */ color: rgb(120, 24, 127);
/* oklch */ color: oklch(41.8% 0.174 325.0);
Tailwind
colors: {
  custom: {
    50: '#a362a5',
    500: '#78187f',
    950: '#000000',
  },
}
SCSS
$custom: #78187f;
$custom-light: #a362a5;
$custom-dark: #000000;
JSON
{
  "hex": "#78187f",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 295.922,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.17415,
    "h": 325
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#78187F
secondary
#47B33F
accent
#EB3D49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78187F

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

Preview Lab → · Contrast checker → · Palette generator →

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