#78167A#78167A

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

Color values

HEX#78167A
RGBrgb(120, 22, 122)
HSLhsl(299, 69%, 28%)
HSVhsv(299, 82%, 48%)
CMYKcmyk(1.6%, 82%, 0%, 52.2%)
CIE-LABlab(29.34, 52.18, -33.49)
CIE-LCHlch(29.34, 62.00, 327.30°)
OKLaboklab(41.38% 0.1446 -0.0931)
OKLCHoklch(41.38% 0.172 327.2)
XYZxyz(11.5453, 5.9729, 18.9534)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78167A #187A16
analogous
#46167A #78167A #7A164A
triadic
#78167A #7A7816 #167A78
tetradic
#78167A #7A4616 #187A16 #164A7A
square
#78167A #7A4616 #187A16 #164A7A
split-complementary
#78167A #4A7A16 #167A46
monochromatic
#19051A #450D46 #78167A #AB1FAE #D631DA

Accessibility & contrast

On white

9.57
#78167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#78167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78167A
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78167A#FFFFFF#000000##FFFFFF
##78167A1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#324978
Tritanopia (blue-blind)
#7C2848
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78167a;
/* rgb */ color: rgb(120, 22, 122);
/* oklch */ color: oklch(41.4% 0.172 327.2);
Tailwind
colors: {
  custom: {
    50: '#a361a1',
    500: '#78167a',
    950: '#000000',
  },
}
SCSS
$custom: #78167a;
$custom-light: #a361a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78167a",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 298.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.17197,
    "h": 327.2
  },
  "luminance": 0.05972
}

Semantic roles & 50–950 ramp

primary
#78167A
secondary
#3FAF3D
accent
#EC3C3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #78167A

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

Preview Lab → · Contrast checker → · Palette generator →

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