#78217E#78217E

#78217E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.164 H 325.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#78217E
RGBrgb(120, 33, 126)
HSLhsl(296, 58%, 31%)
HSVhsv(296, 74%, 49%)
CMYKcmyk(4.8%, 73.8%, 0%, 50.6%)
CIE-LABlab(30.85, 49.28, -33.61)
CIE-LCHlch(30.85, 59.65, 325.70°)
OKLaboklab(42.53% 0.1344 -0.0935)
OKLCHoklch(42.53% 0.164 325.2)
XYZxyz(12.0552, 6.5879, 20.3713)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78217E #277E21
analogous
#49217E #78217E #7E2155
triadic
#78217E #7E7821 #217E78
tetradic
#78217E #7E4921 #277E21 #21557E
square
#78217E #7E4921 #277E21 #21557E
split-complementary
#78217E #557E21 #217E49
monochromatic
#1C081D #4A144E #78217E #A62EAE #C74AD0

Accessibility & contrast

On white

9.06
#78217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#78217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78217E
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78217E#FFFFFF#000000##FFFFFF
##78217E1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#7B314D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78217e;
/* rgb */ color: rgb(120, 33, 126);
/* oklch */ color: oklch(42.5% 0.164 325.2);
Tailwind
colors: {
  custom: {
    50: '#a266a4',
    500: '#78217e',
    950: '#000000',
  },
}
SCSS
$custom: #78217e;
$custom-light: #a266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78217e",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 296.129,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42531,
    "c": 0.1637,
    "h": 325.2
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#78217E
secondary
#51B14A
accent
#E24650
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78217E

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

Preview Lab → · Contrast checker → · Palette generator →

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