#78217B#78217B

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

Color values

HEX#78217B
RGBrgb(120, 33, 123)
HSLhsl(298, 58%, 31%)
HSVhsv(298, 73%, 48%)
CMYKcmyk(2.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(30.67, 48.73, -32.01)
CIE-LCHlch(30.67, 58.31, 326.70°)
OKLaboklab(42.34% 0.1344 -0.0888)
OKLCHoklch(42.34% 0.161 326.5)
XYZxyz(11.8645, 6.5116, 19.3670)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78217B #247B21
analogous
#4B217B #78217B #7B2151
triadic
#78217B #7B7821 #217B78
tetradic
#78217B #7B4B21 #247B21 #21517B
square
#78217B #7B4B21 #247B21 #21517B
split-complementary
#78217B #517B21 #217B4B
monochromatic
#1A071A #49144B #78217B #A72EAB #CA48CE

Accessibility & contrast

On white

9.12
#78217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78217B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78217B#FFFFFF#000000##FFFFFF
##78217B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7B2F4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78217b;
/* rgb */ color: rgb(120, 33, 123);
/* oklch */ color: oklch(42.3% 0.161 326.5);
Tailwind
colors: {
  custom: {
    50: '#a265a1',
    500: '#78217b',
    950: '#000000',
  },
}
SCSS
$custom: #78217b;
$custom-light: #a265a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78217b",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 298,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.16113,
    "h": 326.5
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#78217B
secondary
#4DAE4A
accent
#E1474C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78217B

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

Preview Lab → · Contrast checker → · Palette generator →

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