#78228E#78228E

#78228E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.177 H 318.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#78228E
RGBrgb(120, 34, 142)
HSLhsl(288, 61%, 35%)
HSVhsv(288, 76%, 56%)
CMYKcmyk(15.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(32.01, 51.98, -41.71)
CIE-LCHlch(32.01, 66.64, 321.25°)
OKLaboklab(43.69% 0.1323 -0.1172)
OKLCHoklch(43.69% 0.177 318.5)
XYZxyz(13.1996, 7.0907, 26.2593)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78228E #388E22
analogous
#42228E #78228E #8E226E
triadic
#78228E #8E7822 #228E78
tetradic
#78228E #8E4222 #388E22 #226E8E
square
#78228E #8E4222 #388E22 #226E8E
split-complementary
#78228E #6E8E22 #228E42
monochromatic
#250A2B #4E165D #78228E #A22EBF #BC54D6

Accessibility & contrast

On white

8.68
#78228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#78228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78228E
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78228E#FFFFFF#000000##FFFFFF
##78228E1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#783856
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78228e;
/* rgb */ color: rgb(120, 34, 142);
/* oklch */ color: oklch(43.7% 0.177 318.5);
Tailwind
colors: {
  custom: {
    50: '#a367b0',
    500: '#78228e',
    950: '#000000',
  },
}
SCSS
$custom: #78228e;
$custom-light: #a367b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78228e",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 287.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4369,
    "c": 0.17671,
    "h": 318.5
  },
  "luminance": 0.0709
}

Semantic roles & 50–950 ramp

primary
#78228E
secondary
#67BA52
accent
#E44364
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78228E

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

Preview Lab → · Contrast checker → · Palette generator →

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