#78229E#78229E

#78229E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.191 H 312.7°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#78229E
RGBrgb(120, 34, 158)
HSLhsl(282, 65%, 38%)
HSVhsv(282, 78%, 62%)
CMYKcmyk(24.1%, 78.5%, 0%, 38%)
CIE-LABlab(33.15, 55.24, -49.67)
CIE-LCHlch(33.15, 74.29, 318.04°)
OKLaboklab(44.85% 0.1298 -0.1405)
OKLCHoklch(44.85% 0.191 312.7)
XYZxyz(14.4882, 7.6062, 33.0461)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78229E #489E22
analogous
#3A229E #78229E #9E2286
triadic
#78229E #9E7822 #229E78
tetradic
#78229E #9E3A22 #489E22 #22869E
square
#78229E #9E3A22 #489E22 #22869E
split-complementary
#78229E #869E22 #229E3A
monochromatic
#2B0C39 #52176C #78229E #9E2DD0 #B65EDC

Accessibility & contrast

On white

8.33
#78229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#78229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78229E
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78229E#FFFFFF#000000##FFFFFF
##78229E1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#0F509B
Tritanopia (blue-blind)
#744060
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #78229e;
/* rgb */ color: rgb(120, 34, 158);
/* oklch */ color: oklch(44.9% 0.191 312.7);
Tailwind
colors: {
  custom: {
    50: '#a368bb',
    500: '#78229e',
    950: '#000000',
  },
}
SCSS
$custom: #78229e;
$custom-light: #a368bb;
$custom-dark: #000000;
JSON
{
  "hex": "#78229e",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 281.613,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44853,
    "c": 0.19132,
    "h": 312.7
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#78229E
secondary
#7AC15B
accent
#E84074
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #78229E

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

Preview Lab → · Contrast checker → · Palette generator →

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