#78176C#78176C

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

Color values

HEX#78176C
RGBrgb(120, 23, 108)
HSLhsl(307, 68%, 28%)
HSVhsv(307, 81%, 47%)
CMYKcmyk(0%, 80.8%, 10%, 52.9%)
CIE-LABlab(28.62, 49.56, -25.71)
CIE-LCHlch(28.62, 55.84, 332.58°)
OKLaboklab(40.59% 0.1438 -0.0705)
OKLCHoklch(40.59% 0.16 333.9)
XYZxyz(10.7590, 5.6895, 14.7160)
Luminance0.0569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78176C #177823
analogous
#531778 #78176C #78173B
triadic
#78176C #6C7817 #176C78
tetradic
#78176C #785317 #177823 #173B78
square
#78176C #785317 #177823 #173B78
split-complementary
#78176C #3B7817 #177853
monochromatic
#1A0517 #450D3E #78176C #AB219A #D832C3

Accessibility & contrast

On white

9.82
#78176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78176C
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78176C#FFFFFF#000000##FFFFFF
##78176C1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6E
Deuteranopia (green-blind)
#3A486A
Tritanopia (blue-blind)
#7E2141
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78176c;
/* rgb */ color: rgb(120, 23, 108);
/* oklch */ color: oklch(40.6% 0.160 333.9);
Tailwind
colors: {
  custom: {
    50: '#a26196',
    500: '#78176c',
    950: '#000000',
  },
}
SCSS
$custom: #78176c;
$custom-light: #a26196;
$custom-dark: #000000;
JSON
{
  "hex": "#78176c",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 307.423,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40591,
    "c": 0.1602,
    "h": 333.9
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#78176C
secondary
#3EAD4B
accent
#EB533D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78176C

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

Preview Lab → · Contrast checker → · Palette generator →

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