#78166C#78166C

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

Color values

HEX#78166C
RGBrgb(120, 22, 108)
HSLhsl(307, 69%, 28%)
HSVhsv(307, 82%, 47%)
CMYKcmyk(0%, 81.7%, 10%, 52.9%)
CIE-LABlab(28.51, 49.86, -25.88)
CIE-LCHlch(28.51, 56.17, 332.57°)
OKLaboklab(40.52% 0.1447 -0.071)
OKLCHoklch(40.52% 0.161 333.9)
XYZxyz(10.7395, 5.6506, 14.7095)
Luminance0.0565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78166C #167822
analogous
#531678 #78166C #78163B
triadic
#78166C #6C7816 #166C78
tetradic
#78166C #785316 #167822 #163B78
square
#78166C #785316 #167822 #163B78
split-complementary
#78166C #3B7816 #167853
monochromatic
#1A0517 #440D3D #78166C #AC1F9B #D92FC4

Accessibility & contrast

On white

9.86
#78166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#78166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78166C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78166C#FFFFFF#000000##FFFFFF
##78166C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6E
Deuteranopia (green-blind)
#3A486A
Tritanopia (blue-blind)
#7E2140
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78166c;
/* rgb */ color: rgb(120, 22, 108);
/* oklch */ color: oklch(40.5% 0.161 333.9);
Tailwind
colors: {
  custom: {
    50: '#a26096',
    500: '#78166c',
    950: '#000000',
  },
}
SCSS
$custom: #78166c;
$custom-light: #a26096;
$custom-dark: #000000;
JSON
{
  "hex": "#78166c",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 307.347,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40518,
    "c": 0.16118,
    "h": 333.9
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#78166C
secondary
#3CAD4A
accent
#EC513C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78166C

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

Preview Lab → · Contrast checker → · Palette generator →

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