#78176B#78176B

#78176B is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.159 H 334.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#78176B
RGBrgb(120, 23, 107)
HSLhsl(308, 68%, 28%)
HSVhsv(308, 81%, 47%)
CMYKcmyk(0%, 80.8%, 10.8%, 52.9%)
CIE-LABlab(28.56, 49.40, -25.16)
CIE-LCHlch(28.56, 55.44, 333.01°)
OKLaboklab(40.53% 0.1438 -0.0689)
OKLCHoklch(40.53% 0.159 334.4)
XYZxyz(10.7061, 5.6684, 14.4373)
Luminance0.0567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78176B #177824
analogous
#541778 #78176B #78173A
triadic
#78176B #6B7817 #176B78
tetradic
#78176B #785417 #177824 #173A78
square
#78176B #785417 #177824 #173A78
split-complementary
#78176B #3A7817 #177854
monochromatic
#1A0517 #450D3D #78176B #AB2199 #D832C1

Accessibility & contrast

On white

9.84
#78176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#78176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78176B
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78176B#FFFFFF#000000##FFFFFF
##78176B1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6D
Deuteranopia (green-blind)
#3A4869
Tritanopia (blue-blind)
#7E2140
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78176b;
/* rgb */ color: rgb(120, 23, 107);
/* oklch */ color: oklch(40.5% 0.159 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26195',
    500: '#78176b',
    950: '#000000',
  },
}
SCSS
$custom: #78176b;
$custom-light: #a26195;
$custom-dark: #000000;
JSON
{
  "hex": "#78176b",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 308.041,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.15946,
    "h": 334.4
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#78176B
secondary
#3EAD4D
accent
#EB543D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78176B

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

Preview Lab → · Contrast checker → · Palette generator →

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