#78228C#78228C

#78228C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.175 H 319.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#78228C
RGBrgb(120, 34, 140)
HSLhsl(289, 61%, 34%)
HSVhsv(289, 76%, 55%)
CMYKcmyk(14.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(31.88, 51.58, -40.69)
CIE-LCHlch(31.88, 65.70, 321.73°)
OKLaboklab(43.55% 0.1325 -0.1142)
OKLCHoklch(43.55% 0.175 319.2)
XYZxyz(13.0508, 7.0312, 25.4756)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78228C #368C22
analogous
#43228C #78228C #8C226B
triadic
#78228C #8C7822 #228C78
tetradic
#78228C #8C4322 #368C22 #226B8C
square
#78228C #8C4322 #368C22 #226B8C
split-complementary
#78228C #6B8C22 #228C43
monochromatic
#240A2A #4E165B #78228C #A22EBD #BD53D5

Accessibility & contrast

On white

8.73
#78228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78228C
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78228C#FFFFFF#000000##FFFFFF
##78228C1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78228c;
/* rgb */ color: rgb(120, 34, 140);
/* oklch */ color: oklch(43.6% 0.175 319.2);
Tailwind
colors: {
  custom: {
    50: '#a267ae',
    500: '#78228c',
    950: '#000000',
  },
}
SCSS
$custom: #78228c;
$custom-light: #a267ae;
$custom-dark: #000000;
JSON
{
  "hex": "#78228c",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 288.679,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43551,
    "c": 0.1749,
    "h": 319.2
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

primary
#78228C
secondary
#64B951
accent
#E44462
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78228C

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

Preview Lab → · Contrast checker → · Palette generator →

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