#78176E#78176E

#78176E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.162 H 332.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#78176E
RGBrgb(120, 23, 110)
HSLhsl(306, 68%, 28%)
HSVhsv(306, 81%, 47%)
CMYKcmyk(0%, 80.8%, 8.3%, 52.9%)
CIE-LABlab(28.73, 49.88, -26.82)
CIE-LCHlch(28.73, 56.64, 331.73°)
OKLaboklab(40.71% 0.1439 -0.0737)
OKLCHoklch(40.71% 0.162 332.9)
XYZxyz(10.8667, 5.7326, 15.2830)
Luminance0.0573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78176E #177821
analogous
#521778 #78176E #78173D
triadic
#78176E #6E7817 #176E78
tetradic
#78176E #785217 #177821 #173D78
square
#78176E #785217 #177821 #173D78
split-complementary
#78176E #3D7817 #177852
monochromatic
#1A0518 #450D3F #78176E #AB219D #D832C7

Accessibility & contrast

On white

9.78
#78176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#78176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78176E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78176E#FFFFFF#000000##FFFFFF
##78176E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B70
Deuteranopia (green-blind)
#39496C
Tritanopia (blue-blind)
#7E2242
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78176e;
/* rgb */ color: rgb(120, 23, 110);
/* oklch */ color: oklch(40.7% 0.162 332.9);
Tailwind
colors: {
  custom: {
    50: '#a26198',
    500: '#78176e',
    950: '#000000',
  },
}
SCSS
$custom: #78176e;
$custom-light: #a26198;
$custom-dark: #000000;
JSON
{
  "hex": "#78176e",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 306.186,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40708,
    "c": 0.16171,
    "h": 332.9
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#78176E
secondary
#3EAD49
accent
#EB4F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78176E

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

Preview Lab → · Contrast checker → · Palette generator →

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