#5224A9#5224A9

#5224A9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.194 H 291.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5224A9
RGBrgb(82, 36, 169)
HSLhsl(261, 65%, 40%)
HSVhsv(261, 79%, 66%)
CMYKcmyk(51.5%, 78.7%, 0%, 33.7%)
CIE-LABlab(29.21, 50.77, -62.96)
CIE-LCHlch(29.21, 80.88, 308.88°)
OKLaboklab(41.28% 0.0697 -0.1809)
OKLCHoklch(41.28% 0.194 291.1)
XYZxyz(11.2699, 5.9197, 38.0772)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224A9 #7BA924
analogous
#2438A9 #5224A9 #9424A9
triadic
#5224A9 #A95224 #24A952
tetradic
#5224A9 #A92438 #7BA924 #24A994
square
#5224A9 #A92438 #7BA924 #24A994
split-complementary
#5224A9 #A99424 #38A924
monochromatic
#210F44 #3A1977 #5224A9 #6D36D4 #9168DF

Accessibility & contrast

On white

9.62
#5224A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5224A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224A9
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224A9#FFFFFF#000000##FFFFFF
##5224A91.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#334A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5224a9;
/* rgb */ color: rgb(82, 36, 169);
/* oklch */ color: oklch(41.3% 0.194 291.1);
Tailwind
colors: {
  custom: {
    50: '#8c65c4',
    500: '#5224a9',
    950: '#000000',
  },
}
SCSS
$custom: #5224a9;
$custom-light: #8c65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5224a9",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 260.752,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.19387,
    "h": 291.1
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#5224A9
secondary
#A3C564
accent
#E840AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5224A9

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

Preview Lab → · Contrast checker → · Palette generator →

#5224A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva