#78168D#78168D

#78168D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.187 H 319.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#78168D
RGBrgb(120, 22, 141)
HSLhsl(289, 73%, 32%)
HSVhsv(289, 84%, 55%)
CMYKcmyk(14.9%, 84.4%, 0%, 44.7%)
CIE-LABlab(30.62, 55.61, -43.34)
CIE-LCHlch(30.62, 70.51, 322.07°)
OKLaboklab(42.68% 0.1424 -0.1219)
OKLCHoklch(42.68% 0.187 319.4)
XYZxyz(12.8397, 6.4906, 25.7706)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78168D #2B8D16
analogous
#3D168D #78168D #8D1667
triadic
#78168D #8D7816 #168D78
tetradic
#78168D #8D3D16 #2B8D16 #16678D
square
#78168D #8D3D16 #2B8D16 #16678D
split-complementary
#78168D #678D16 #168D3D
monochromatic
#1E0523 #4B0E58 #78168D #A51EC2 #C43DE1

Accessibility & contrast

On white

9.14
#78168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78168D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78168D#FFFFFF#000000##FFFFFF
##78168D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#214B8B
Tritanopia (blue-blind)
#783253
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78168d;
/* rgb */ color: rgb(120, 22, 141);
/* oklch */ color: oklch(42.7% 0.187 319.4);
Tailwind
colors: {
  custom: {
    50: '#a362af',
    500: '#78168d',
    950: '#000000',
  },
}
SCSS
$custom: #78168d;
$custom-light: #a362af;
$custom-dark: #000000;
JSON
{
  "hex": "#78168d",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 289.412,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42683,
    "c": 0.18744,
    "h": 319.4
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#78168D
secondary
#55C13E
accent
#F03859
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78168D

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

Preview Lab → · Contrast checker → · Palette generator →

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