#78168E#78168E

#78168E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.8% C 0.188 H 319.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#78168E
RGBrgb(120, 22, 142)
HSLhsl(289, 73%, 32%)
HSVhsv(289, 85%, 56%)
CMYKcmyk(15.5%, 84.5%, 0%, 44.3%)
CIE-LABlab(30.69, 55.80, -43.84)
CIE-LCHlch(30.69, 70.96, 321.84°)
OKLaboklab(42.76% 0.1422 -0.1233)
OKLCHoklch(42.76% 0.188 319.1)
XYZxyz(12.9145, 6.5205, 26.1643)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78168E #2C8E16
analogous
#3C168E #78168E #8E1668
triadic
#78168E #8E7816 #168E78
tetradic
#78168E #8E3C16 #2C8E16 #16688E
square
#78168E #8E3C16 #2C8E16 #16688E
split-complementary
#78168E #688E16 #168E3C
monochromatic
#1E0624 #4B0E59 #78168E #A51EC3 #C33DE1

Accessibility & contrast

On white

9.11
#78168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#78168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78168E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78168E#FFFFFF#000000##FFFFFF
##78168E1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#783354
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78168e;
/* rgb */ color: rgb(120, 22, 142);
/* oklch */ color: oklch(42.8% 0.188 319.1);
Tailwind
colors: {
  custom: {
    50: '#a362b0',
    500: '#78168e',
    950: '#000000',
  },
}
SCSS
$custom: #78168e;
$custom-light: #a362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78168e",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 289,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.18827,
    "h": 319.1
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#78168E
secondary
#57C13F
accent
#F0385A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78168E

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

Preview Lab → · Contrast checker → · Palette generator →

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