#78167B#78167B

#78167B is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.173 H 326.8°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#78167B
RGBrgb(120, 22, 123)
HSLhsl(298, 70%, 28%)
HSVhsv(298, 82%, 48%)
CMYKcmyk(2.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(29.41, 52.35, -34.02)
CIE-LCHlch(29.41, 62.43, 326.98°)
OKLaboklab(41.44% 0.1446 -0.0946)
OKLCHoklch(41.44% 0.173 326.8)
XYZxyz(11.6076, 5.9978, 19.2814)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78167B #197B16
analogous
#45167B #78167B #7B164B
triadic
#78167B #7B7816 #167B78
tetradic
#78167B #7B4516 #197B16 #164B7B
square
#78167B #7B4516 #197B16 #164B7B
split-complementary
#78167B #4B7B16 #167B45
monochromatic
#19051A #450D47 #78167B #AB1FAF #D531DA

Accessibility & contrast

On white

9.55
#78167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#78167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78167B
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78167B#FFFFFF#000000##FFFFFF
##78167B1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#314979
Tritanopia (blue-blind)
#7B2949
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78167b;
/* rgb */ color: rgb(120, 22, 123);
/* oklch */ color: oklch(41.4% 0.173 326.8);
Tailwind
colors: {
  custom: {
    50: '#a361a2',
    500: '#78167b',
    950: '#000000',
  },
}
SCSS
$custom: #78167b;
$custom-light: #a361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78167b",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 298.218,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41443,
    "c": 0.17276,
    "h": 326.8
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#78167B
secondary
#40B03D
accent
#EC3B41
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78167B

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

Preview Lab → · Contrast checker → · Palette generator →

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