#78218A#78218A

#78218A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.174 H 320.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#78218A
RGBrgb(120, 33, 138)
HSLhsl(290, 61%, 34%)
HSVhsv(290, 76%, 54%)
CMYKcmyk(13%, 76.1%, 0%, 45.9%)
CIE-LABlab(31.62, 51.56, -39.87)
CIE-LCHlch(31.62, 65.18, 322.28°)
OKLaboklab(43.32% 0.1337 -0.1118)
OKLCHoklch(43.32% 0.174 320.1)
XYZxyz(12.8765, 6.9164, 24.6966)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78218A #338A21
analogous
#43218A #78218A #8A2167
triadic
#78218A #8A7821 #218A78
tetradic
#78218A #8A4321 #338A21 #21678A
square
#78218A #8A4321 #338A21 #21678A
split-complementary
#78218A #678A21 #218A43
monochromatic
#220927 #4D1559 #78218A #A32DBB #BE50D5

Accessibility & contrast

On white

8.81
#78218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#78218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78218A
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78218A#FFFFFF#000000##FFFFFF
##78218A1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2B4D88
Tritanopia (blue-blind)
#783654
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #78218a;
/* rgb */ color: rgb(120, 33, 138);
/* oklch */ color: oklch(43.3% 0.174 320.1);
Tailwind
colors: {
  custom: {
    50: '#a266ad',
    500: '#78218a',
    950: '#000000',
  },
}
SCSS
$custom: #78218a;
$custom-light: #a266ad;
$custom-dark: #000000;
JSON
{
  "hex": "#78218a",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 289.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43322,
    "c": 0.17424,
    "h": 320.1
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#78218A
secondary
#60B94E
accent
#E5435F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78218A

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

Preview Lab → · Contrast checker → · Palette generator →

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