#78228B#78228B

#78228B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.174 H 319.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#78228B
RGBrgb(120, 34, 139)
HSLhsl(289, 61%, 34%)
HSVhsv(289, 76%, 55%)
CMYKcmyk(13.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(31.81, 51.38, -40.18)
CIE-LCHlch(31.81, 65.23, 321.98°)
OKLaboklab(43.48% 0.1326 -0.1127)
OKLCHoklch(43.48% 0.174 319.6)
XYZxyz(12.9774, 7.0019, 25.0890)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78228B #358B22
analogous
#44228B #78228B #8B226A
triadic
#78228B #8B7822 #228B78
tetradic
#78228B #8B4422 #358B22 #226A8B
square
#78228B #8B4422 #358B22 #226A8B
split-complementary
#78228B #6A8B22 #228B44
monochromatic
#230A29 #4E165A #78228B #A22EBC #BD53D5

Accessibility & contrast

On white

8.75
#78228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#78228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78228B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78228B#FFFFFF#000000##FFFFFF
##78228B1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78228b;
/* rgb */ color: rgb(120, 34, 139);
/* oklch */ color: oklch(43.5% 0.174 319.6);
Tailwind
colors: {
  custom: {
    50: '#a267ad',
    500: '#78228b',
    950: '#000000',
  },
}
SCSS
$custom: #78228b;
$custom-light: #a267ad;
$custom-dark: #000000;
JSON
{
  "hex": "#78228b",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 289.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43482,
    "c": 0.17401,
    "h": 319.6
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#78228B
secondary
#63B850
accent
#E44461
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78228B

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

Preview Lab → · Contrast checker → · Palette generator →

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