#78218E#78218E

#78218E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.178 H 318.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#78218E
RGBrgb(120, 33, 142)
HSLhsl(288, 62%, 34%)
HSVhsv(288, 77%, 56%)
CMYKcmyk(15.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(31.89, 52.34, -41.92)
CIE-LCHlch(31.89, 67.06, 321.31°)
OKLaboklab(43.6% 0.1332 -0.1178)
OKLCHoklch(43.6% 0.178 318.5)
XYZxyz(13.1714, 7.0344, 26.2499)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78218E #378E21
analogous
#42218E #78218E #8E216E
triadic
#78218E #8E7821 #218E78
tetradic
#78218E #8E4221 #378E21 #216E8E
square
#78218E #8E4221 #378E21 #216E8E
split-complementary
#78218E #6E8E21 #218E42
monochromatic
#240A2B #4E155C #78218E #A22DC0 #BC52D7

Accessibility & contrast

On white

8.73
#78218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#78218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78218E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78218E#FFFFFF#000000##FFFFFF
##78218E1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#274E8C
Tritanopia (blue-blind)
#783856
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78218e;
/* rgb */ color: rgb(120, 33, 142);
/* oklch */ color: oklch(43.6% 0.178 318.5);
Tailwind
colors: {
  custom: {
    50: '#a366b0',
    500: '#78218e',
    950: '#000000',
  },
}
SCSS
$custom: #78218e;
$custom-light: #a366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78218e",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 287.89,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43599,
    "c": 0.17781,
    "h": 318.5
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#78218E
secondary
#66BA50
accent
#E54263
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78218E

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

Preview Lab → · Contrast checker → · Palette generator →

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