#5224A1#5224A1

#5224A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.185 H 292.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5224A1
RGBrgb(82, 36, 161)
HSLhsl(262, 63%, 39%)
HSVhsv(262, 78%, 63%)
CMYKcmyk(49.1%, 77.6%, 0%, 36.9%)
CIE-LABlab(28.45, 48.61, -59.36)
CIE-LCHlch(28.45, 76.73, 309.32°)
OKLaboklab(40.52% 0.0721 -0.1704)
OKLCHoklch(40.52% 0.185 292.9)
XYZxyz(10.5418, 5.6284, 34.2423)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224A1 #73A124
analogous
#2434A1 #5224A1 #9024A1
triadic
#5224A1 #A15224 #24A152
tetradic
#5224A1 #A12434 #73A124 #24A190
square
#5224A1 #A12434 #73A124 #24A190
split-complementary
#5224A1 #A19024 #34A124
monochromatic
#1F0E3D #39196F #5224A1 #6C31D1 #9063DC

Accessibility & contrast

On white

9.88
#5224A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5224A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224A1
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224A1#FFFFFF#000000##FFFFFF
##5224A11.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#394762
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5224a1;
/* rgb */ color: rgb(82, 36, 161);
/* oklch */ color: oklch(40.5% 0.185 292.9);
Tailwind
colors: {
  custom: {
    50: '#8b64be',
    500: '#5224a1',
    950: '#000000',
  },
}
SCSS
$custom: #5224a1;
$custom-light: #8b64be;
$custom-dark: #000000;
JSON
{
  "hex": "#5224a1",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 161
  },
  "hsl": {
    "h": 262.08,
    "s": 63.452,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40522,
    "c": 0.18497,
    "h": 292.9
  },
  "luminance": 0.05629
}

Semantic roles & 50–950 ramp

primary
#5224A1
secondary
#9DC25F
accent
#E641AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5224A1

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

Preview Lab → · Contrast checker → · Palette generator →

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