#78229F#78229F

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

Color values

HEX#78229F
RGBrgb(120, 34, 159)
HSLhsl(281, 65%, 38%)
HSVhsv(281, 79%, 62%)
CMYKcmyk(24.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(33.22, 55.45, -50.15)
CIE-LCHlch(33.22, 74.77, 317.87°)
OKLaboklab(44.93% 0.1296 -0.142)
OKLCHoklch(44.93% 0.192 312.4)
XYZxyz(14.5746, 7.6408, 33.5012)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78229F #499F22
analogous
#39229F #78229F #9F2287
triadic
#78229F #9F7822 #229F78
tetradic
#78229F #9F3922 #499F22 #22879F
square
#78229F #9F3922 #499F22 #22879F
split-complementary
#78229F #879F22 #229F39
monochromatic
#2C0C3A #52176D #78229F #9E2DD1 #B55FDD

Accessibility & contrast

On white

8.31
#78229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#78229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78229F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78229F#FFFFFF#000000##FFFFFF
##78229F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#0C509C
Tritanopia (blue-blind)
#734060
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #78229f;
/* rgb */ color: rgb(120, 34, 159);
/* oklch */ color: oklch(44.9% 0.192 312.4);
Tailwind
colors: {
  custom: {
    50: '#a368bc',
    500: '#78229f',
    950: '#000000',
  },
}
SCSS
$custom: #78229f;
$custom-light: #a368bc;
$custom-dark: #000000;
JSON
{
  "hex": "#78229f",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 281.28,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44929,
    "c": 0.19223,
    "h": 312.4
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #78229F

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

Preview Lab → · Contrast checker → · Palette generator →

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