#78177D#78177D

#78177D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.173 H 325.9°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#78177D
RGBrgb(120, 23, 125)
HSLhsl(297, 69%, 29%)
HSVhsv(297, 82%, 49%)
CMYKcmyk(4%, 81.6%, 0%, 51%)
CIE-LABlab(29.63, 52.42, -34.93)
CIE-LCHlch(29.63, 62.99, 326.32°)
OKLaboklab(41.64% 0.1436 -0.0973)
OKLCHoklch(41.64% 0.173 325.9)
XYZxyz(11.7536, 6.0873, 19.9540)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78177D #1C7D17
analogous
#45177D #78177D #7D174F
triadic
#78177D #7D7817 #177D78
tetradic
#78177D #7D4517 #1C7D17 #174F7D
square
#78177D #7D4517 #1C7D17 #174F7D
split-complementary
#78177D #4F7D17 #177D45
monochromatic
#19051A #460D49 #78177D #AA21B1 #D235DA

Accessibility & contrast

On white

9.47
#78177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78177D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78177D#FFFFFF#000000##FFFFFF
##78177D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#7B2A4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78177d;
/* rgb */ color: rgb(120, 23, 125);
/* oklch */ color: oklch(41.6% 0.173 325.9);
Tailwind
colors: {
  custom: {
    50: '#a362a3',
    500: '#78177d',
    950: '#000000',
  },
}
SCSS
$custom: #78177d;
$custom-light: #a362a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78177d",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 297.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41643,
    "c": 0.17346,
    "h": 325.9
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#78177D
secondary
#44B23E
accent
#EC3C45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78177D

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

Preview Lab → · Contrast checker → · Palette generator →

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