#78177E#78177E

#78177E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.174 H 325.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#78177E
RGBrgb(120, 23, 126)
HSLhsl(297, 69%, 29%)
HSVhsv(297, 82%, 49%)
CMYKcmyk(4.8%, 81.7%, 0%, 50.6%)
CIE-LABlab(29.70, 52.59, -35.45)
CIE-LCHlch(29.70, 63.43, 326.01°)
OKLaboklab(41.71% 0.1436 -0.0988)
OKLCHoklch(41.71% 0.174 325.5)
XYZxyz(11.8178, 6.1130, 20.2921)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78177E #1D7E17
analogous
#45177E #78177E #7E1751
triadic
#78177E #7E7817 #177E78
tetradic
#78177E #7E4517 #1D7E17 #17517E
square
#78177E #7E4517 #1D7E17 #17517E
split-complementary
#78177E #517E17 #177E45
monochromatic
#19051A #470E4A #78177E #A920B2 #D135DA

Accessibility & contrast

On white

9.45
#78177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#78177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78177E
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78177E#FFFFFF#000000##FFFFFF
##78177E1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78177e;
/* rgb */ color: rgb(120, 23, 126);
/* oklch */ color: oklch(41.7% 0.174 325.5);
Tailwind
colors: {
  custom: {
    50: '#a362a4',
    500: '#78177e',
    950: '#000000',
  },
}
SCSS
$custom: #78177e;
$custom-light: #a362a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78177e",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 296.505,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.17426,
    "h": 325.5
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#78177E
secondary
#45B33E
accent
#EC3C46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78177E

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

Preview Lab → · Contrast checker → · Palette generator →

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