#78218D#78218D

#78218D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.177 H 318.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#78218D
RGBrgb(120, 33, 141)
HSLhsl(288, 62%, 34%)
HSVhsv(288, 77%, 55%)
CMYKcmyk(14.9%, 76.6%, 0%, 44.7%)
CIE-LABlab(31.82, 52.14, -41.41)
CIE-LCHlch(31.82, 66.59, 321.55°)
OKLaboklab(43.53% 0.1333 -0.1163)
OKLCHoklch(43.53% 0.177 318.9)
XYZxyz(13.0967, 7.0045, 25.8563)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78218D #368D21
analogous
#42218D #78218D #8D216C
triadic
#78218D #8D7821 #218D78
tetradic
#78218D #8D4221 #368D21 #216C8D
square
#78218D #8D4221 #368D21 #216C8D
split-complementary
#78218D #6C8D21 #218D42
monochromatic
#240A2A #4E155B #78218D #A22DBF #BD52D6

Accessibility & contrast

On white

8.75
#78218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#78218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78218D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78218D#FFFFFF#000000##FFFFFF
##78218D1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#284E8B
Tritanopia (blue-blind)
#783756
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78218d;
/* rgb */ color: rgb(120, 33, 141);
/* oklch */ color: oklch(43.5% 0.177 318.9);
Tailwind
colors: {
  custom: {
    50: '#a366af',
    500: '#78218d',
    950: '#000000',
  },
}
SCSS
$custom: #78218d;
$custom-light: #a366af;
$custom-dark: #000000;
JSON
{
  "hex": "#78218d",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 288.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4353,
    "c": 0.17692,
    "h": 318.9
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#78218D
secondary
#64BA50
accent
#E54362
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78218D

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

Preview Lab → · Contrast checker → · Palette generator →

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