#78167E#78167E

#78167E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.175 H 325.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#78167E
RGBrgb(120, 22, 126)
HSLhsl(297, 70%, 29%)
HSVhsv(297, 83%, 49%)
CMYKcmyk(4.8%, 82.5%, 0%, 50.6%)
CIE-LABlab(29.60, 52.87, -35.61)
CIE-LCHlch(29.60, 63.75, 326.04°)
OKLaboklab(41.64% 0.1443 -0.0992)
OKLCHoklch(41.64% 0.175 325.5)
XYZxyz(11.7983, 6.0741, 20.2856)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78167E #1C7E16
analogous
#44167E #78167E #7E1650
triadic
#78167E #7E7816 #167E78
tetradic
#78167E #7E4416 #1C7E16 #16507E
square
#78167E #7E4416 #1C7E16 #16507E
split-complementary
#78167E #507E16 #167E44
monochromatic
#19051A #460D4A #78167E #AA1FB2 #D233DB

Accessibility & contrast

On white

9.48
#78167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#78167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78167E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78167E#FFFFFF#000000##FFFFFF
##78167E1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#2F4A7C
Tritanopia (blue-blind)
#7B2A4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78167e;
/* rgb */ color: rgb(120, 22, 126);
/* oklch */ color: oklch(41.6% 0.175 325.5);
Tailwind
colors: {
  custom: {
    50: '#a361a4',
    500: '#78167e',
    950: '#000000',
  },
}
SCSS
$custom: #78167e;
$custom-light: #a361a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78167e",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 296.538,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4164,
    "c": 0.17517,
    "h": 325.5
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#78167E
secondary
#44B33D
accent
#ED3B45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78167E

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

Preview Lab → · Contrast checker → · Palette generator →

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