#78187E#78187E

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

Color values

HEX#78187E
RGBrgb(120, 24, 126)
HSLhsl(296, 68%, 29%)
HSVhsv(296, 81%, 49%)
CMYKcmyk(4.8%, 81%, 0%, 50.6%)
CIE-LABlab(29.80, 52.30, -35.29)
CIE-LCHlch(29.80, 63.09, 325.99°)
OKLaboklab(41.78% 0.1427 -0.0983)
OKLCHoklch(41.78% 0.173 325.4)
XYZxyz(11.8380, 6.1535, 20.2988)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78187E #1E7E18
analogous
#45187E #78187E #7E1851
triadic
#78187E #7E7818 #187E78
tetradic
#78187E #7E4518 #1E7E18 #18517E
square
#78187E #7E4518 #1E7E18 #18517E
split-complementary
#78187E #517E18 #187E45
monochromatic
#18051A #470E4B #78187E #A922B1 #CF37D9

Accessibility & contrast

On white

9.41
#78187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78187E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78187E#FFFFFF#000000##FFFFFF
##78187E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78187e;
/* rgb */ color: rgb(120, 24, 126);
/* oklch */ color: oklch(41.8% 0.173 325.4);
Tailwind
colors: {
  custom: {
    50: '#a362a4',
    500: '#78187e',
    950: '#000000',
  },
}
SCSS
$custom: #78187e;
$custom-light: #a362a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78187e",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 296.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4178,
    "c": 0.17334,
    "h": 325.4
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#78187E
secondary
#46B23F
accent
#EB3D47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78187E

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

Preview Lab → · Contrast checker → · Palette generator →

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