#78168F#78168F

#78168F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.189 H 318.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#78168F
RGBrgb(120, 22, 143)
HSLhsl(289, 73%, 32%)
HSVhsv(289, 85%, 56%)
CMYKcmyk(16.1%, 84.6%, 0%, 43.9%)
CIE-LABlab(30.76, 55.99, -44.34)
CIE-LCHlch(30.76, 71.42, 321.62°)
OKLaboklab(42.83% 0.1421 -0.1248)
OKLCHoklch(42.83% 0.189 318.7)
XYZxyz(12.9899, 6.5507, 26.5615)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78168F #2D8F16
analogous
#3C168F #78168F #8F166A
triadic
#78168F #8F7816 #168F78
tetradic
#78168F #8F3C16 #2D8F16 #166A8F
square
#78168F #8F3C16 #2D8F16 #166A8F
split-complementary
#78168F #6A8F16 #168F3C
monochromatic
#1F0625 #4B0E5A #78168F #A51EC4 #C23EE1

Accessibility & contrast

On white

9.09
#78168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#78168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78168F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78168F#FFFFFF#000000##FFFFFF
##78168F1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#773355
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78168f;
/* rgb */ color: rgb(120, 22, 143);
/* oklch */ color: oklch(42.8% 0.189 318.7);
Tailwind
colors: {
  custom: {
    50: '#a362b0',
    500: '#78168f',
    950: '#000000',
  },
}
SCSS
$custom: #78168f;
$custom-light: #a362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78168f",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 288.595,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.18911,
    "h": 318.7
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#78168F
secondary
#58C13F
accent
#F0385B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #78168F

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

Preview Lab → · Contrast checker → · Palette generator →

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