#78166F#78166F

#78166F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.163 H 332.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#78166F
RGBrgb(120, 22, 111)
HSLhsl(306, 69%, 28%)
HSVhsv(306, 82%, 47%)
CMYKcmyk(0%, 81.7%, 7.5%, 52.9%)
CIE-LABlab(28.68, 50.34, -27.53)
CIE-LCHlch(28.68, 57.38, 331.32°)
OKLaboklab(40.69% 0.1448 -0.0758)
OKLCHoklch(40.69% 0.163 332.4)
XYZxyz(10.9019, 5.7155, 15.5649)
Luminance0.0571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78166F #16781F
analogous
#501678 #78166F #78163E
triadic
#78166F #6F7816 #166F78
tetradic
#78166F #785016 #16781F #163E78
square
#78166F #785016 #16781F #163E78
split-complementary
#78166F #3E7816 #167850
monochromatic
#1A0518 #440D3F #78166F #AC1F9F #D92FC9

Accessibility & contrast

On white

9.80
#78166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#78166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78166F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78166F#FFFFFF#000000##FFFFFF
##78166F1.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)
#0E3B71
Deuteranopia (green-blind)
#38486D
Tritanopia (blue-blind)
#7D2242
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78166f;
/* rgb */ color: rgb(120, 22, 111);
/* oklch */ color: oklch(40.7% 0.163 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26198',
    500: '#78166f',
    950: '#000000',
  },
}
SCSS
$custom: #78166f;
$custom-light: #a26198;
$custom-dark: #000000;
JSON
{
  "hex": "#78166f",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 305.51,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40694,
    "c": 0.16343,
    "h": 332.4
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#78166F
secondary
#3CAD47
accent
#EC4C3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E

Preview Lab

Preview with #78166F

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

Preview Lab → · Contrast checker → · Palette generator →

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