#78218B#78218B

#78218B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.175 H 319.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#78218B
RGBrgb(120, 33, 139)
HSLhsl(289, 62%, 34%)
HSVhsv(289, 76%, 55%)
CMYKcmyk(13.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(31.68, 51.75, -40.39)
CIE-LCHlch(31.68, 65.65, 322.03°)
OKLaboklab(43.39% 0.1336 -0.1133)
OKLCHoklch(43.39% 0.175 319.7)
XYZxyz(12.9492, 6.9455, 25.0796)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78218B #348B21
analogous
#43218B #78218B #8B2169
triadic
#78218B #8B7821 #218B78
tetradic
#78218B #8B4321 #348B21 #21698B
square
#78218B #8B4321 #348B21 #21698B
split-complementary
#78218B #698B21 #218B43
monochromatic
#230A28 #4D155A #78218B #A32DBC #BE51D6

Accessibility & contrast

On white

8.79
#78218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78218B
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78218B#FFFFFF#000000##FFFFFF
##78218B1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#783655
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78218b;
/* rgb */ color: rgb(120, 33, 139);
/* oklch */ color: oklch(43.4% 0.175 319.7);
Tailwind
colors: {
  custom: {
    50: '#a366ad',
    500: '#78218b',
    950: '#000000',
  },
}
SCSS
$custom: #78218b;
$custom-light: #a366ad;
$custom-dark: #000000;
JSON
{
  "hex": "#78218b",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 289.245,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43391,
    "c": 0.17513,
    "h": 319.7
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#78218B
secondary
#62B94F
accent
#E54360
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78218B

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

Preview Lab → · Contrast checker → · Palette generator →

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