#78217A#78217A

#78217A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.160 H 327.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#78217A
RGBrgb(120, 33, 122)
HSLhsl(299, 57%, 30%)
HSVhsv(299, 73%, 48%)
CMYKcmyk(1.6%, 73%, 0%, 52.2%)
CIE-LABlab(30.61, 48.55, -31.48)
CIE-LCHlch(30.61, 57.86, 327.04°)
OKLaboklab(42.28% 0.1344 -0.0873)
OKLCHoklch(42.28% 0.16 327)
XYZxyz(11.8022, 6.4867, 19.0390)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78217A #237A21
analogous
#4C217A #78217A #7A214F
triadic
#78217A #7A7821 #217A78
tetradic
#78217A #7A4C21 #237A21 #214F7A
square
#78217A #7A4C21 #237A21 #214F7A
split-complementary
#78217A #4F7A21 #217A4C
monochromatic
#19071A #49144A #78217A #A72EAA #CA48CD

Accessibility & contrast

On white

9.14
#78217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#78217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78217A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78217A#FFFFFF#000000##FFFFFF
##78217A1.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)
#0F417C
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#7C2F4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78217a;
/* rgb */ color: rgb(120, 33, 122);
/* oklch */ color: oklch(42.3% 0.160 327.0);
Tailwind
colors: {
  custom: {
    50: '#a265a1',
    500: '#78217a',
    950: '#000000',
  },
}
SCSS
$custom: #78217a;
$custom-light: #a265a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78217a",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 298.652,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.16028,
    "h": 327
  },
  "luminance": 0.06486
}

Semantic roles & 50–950 ramp

primary
#78217A
secondary
#4CAD4A
accent
#E1474B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #78217A

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

Preview Lab → · Contrast checker → · Palette generator →

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