#78217C#78217C

#78217C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.162 H 326.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#78217C
RGBrgb(120, 33, 124)
HSLhsl(297, 58%, 31%)
HSVhsv(297, 73%, 49%)
CMYKcmyk(3.2%, 73.4%, 0%, 51.4%)
CIE-LABlab(30.73, 48.91, -32.55)
CIE-LCHlch(30.73, 58.75, 326.36°)
OKLaboklab(42.4% 0.1344 -0.0904)
OKLCHoklch(42.4% 0.162 326.1)
XYZxyz(11.9274, 6.5368, 19.6984)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78217C #257C21
analogous
#4A217C #78217C #7C2152
triadic
#78217C #7C7821 #217C78
tetradic
#78217C #7C4A21 #257C21 #21527C
square
#78217C #7C4A21 #257C21 #21527C
split-complementary
#78217C #527C21 #217C4A
monochromatic
#1A071B #49144C #78217C #A72EAC #C949CF

Accessibility & contrast

On white

9.10
#78217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#78217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78217C
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78217C#FFFFFF#000000##FFFFFF
##78217C1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#7B304C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78217c;
/* rgb */ color: rgb(120, 33, 124);
/* oklch */ color: oklch(42.4% 0.162 326.1);
Tailwind
colors: {
  custom: {
    50: '#a266a2',
    500: '#78217c',
    950: '#000000',
  },
}
SCSS
$custom: #78217c;
$custom-light: #a266a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78217c",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 297.363,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42404,
    "c": 0.16198,
    "h": 326.1
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#78217C
secondary
#4EAF4A
accent
#E1474D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78217C

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

Preview Lab → · Contrast checker → · Palette generator →

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