#78176D#78176D

#78176D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.161 H 333.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#78176D
RGBrgb(120, 23, 109)
HSLhsl(307, 68%, 28%)
HSVhsv(307, 81%, 47%)
CMYKcmyk(0%, 80.8%, 9.2%, 52.9%)
CIE-LABlab(28.67, 49.72, -26.27)
CIE-LCHlch(28.67, 56.24, 332.15°)
OKLaboklab(40.65% 0.1439 -0.0721)
OKLCHoklch(40.65% 0.161 333.4)
XYZxyz(10.8125, 5.7109, 14.9979)
Luminance0.0571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78176D #177822
analogous
#521778 #78176D #78173C
triadic
#78176D #6D7817 #176D78
tetradic
#78176D #785217 #177822 #173C78
square
#78176D #785217 #177822 #173C78
split-complementary
#78176D #3C7817 #177852
monochromatic
#1A0517 #450D3E #78176D #AB219C #D832C5

Accessibility & contrast

On white

9.80
#78176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#78176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78176D
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78176D#FFFFFF#000000##FFFFFF
##78176D1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B6F
Deuteranopia (green-blind)
#39486B
Tritanopia (blue-blind)
#7E2241
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78176d;
/* rgb */ color: rgb(120, 23, 109);
/* oklch */ color: oklch(40.6% 0.161 333.4);
Tailwind
colors: {
  custom: {
    50: '#a26197',
    500: '#78176d',
    950: '#000000',
  },
}
SCSS
$custom: #78176d;
$custom-light: #a26197;
$custom-dark: #000000;
JSON
{
  "hex": "#78176d",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 306.804,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40649,
    "c": 0.16096,
    "h": 333.4
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#78176D
secondary
#3EAD4A
accent
#EB513D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78176D

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

Preview Lab → · Contrast checker → · Palette generator →

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