#78218C#78218C

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

Color values

HEX#78218C
RGBrgb(120, 33, 140)
HSLhsl(289, 62%, 34%)
HSVhsv(289, 76%, 55%)
CMYKcmyk(14.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(31.75, 51.95, -40.90)
CIE-LCHlch(31.75, 66.11, 321.79°)
OKLaboklab(43.46% 0.1335 -0.1148)
OKLCHoklch(43.46% 0.176 319.3)
XYZxyz(13.0226, 6.9749, 25.4662)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78218C #358C21
analogous
#43218C #78218C #8C216B
triadic
#78218C #8C7821 #218C78
tetradic
#78218C #8C4321 #358C21 #216B8C
square
#78218C #8C4321 #358C21 #216B8C
split-complementary
#78218C #6B8C21 #218C43
monochromatic
#230A29 #4E155A #78218C #A22DBE #BD51D6

Accessibility & contrast

On white

8.77
#78218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#78218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78218C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78218C#FFFFFF#000000##FFFFFF
##78218C1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#294E8A
Tritanopia (blue-blind)
#783755
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78218c;
/* rgb */ color: rgb(120, 33, 140);
/* oklch */ color: oklch(43.5% 0.176 319.3);
Tailwind
colors: {
  custom: {
    50: '#a366ae',
    500: '#78218c',
    950: '#000000',
  },
}
SCSS
$custom: #78218c;
$custom-light: #a366ae;
$custom-dark: #000000;
JSON
{
  "hex": "#78218c",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 288.785,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4346,
    "c": 0.17603,
    "h": 319.3
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#78218C
secondary
#63B94F
accent
#E54361
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78218C

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

Preview Lab → · Contrast checker → · Palette generator →

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