#78228D#78228D

#78228D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.176 H 318.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#78228D
RGBrgb(120, 34, 141)
HSLhsl(288, 61%, 34%)
HSVhsv(288, 76%, 55%)
CMYKcmyk(14.9%, 75.9%, 0%, 44.7%)
CIE-LABlab(31.94, 51.78, -41.20)
CIE-LCHlch(31.94, 66.17, 321.49°)
OKLaboklab(43.62% 0.1324 -0.1157)
OKLCHoklch(43.62% 0.176 318.8)
XYZxyz(13.1248, 7.0608, 25.8657)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78228D #378D22
analogous
#42228D #78228D #8D226D
triadic
#78228D #8D7822 #228D78
tetradic
#78228D #8D4222 #378D22 #226D8D
square
#78228D #8D4222 #378D22 #226D8D
split-complementary
#78228D #6D8D22 #228D42
monochromatic
#240A2A #4E165C #78228D #A22EBE #BC54D6

Accessibility & contrast

On white

8.71
#78228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#78228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78228D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78228D#FFFFFF#000000##FFFFFF
##78228D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#783856
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78228d;
/* rgb */ color: rgb(120, 34, 141);
/* oklch */ color: oklch(43.6% 0.176 318.8);
Tailwind
colors: {
  custom: {
    50: '#a367af',
    500: '#78228d',
    950: '#000000',
  },
}
SCSS
$custom: #78228d;
$custom-light: #a367af;
$custom-dark: #000000;
JSON
{
  "hex": "#78228d",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 288.224,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4362,
    "c": 0.17581,
    "h": 318.8
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#78228D
secondary
#66B951
accent
#E44463
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78228D

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

Preview Lab → · Contrast checker → · Palette generator →

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