#5224AF#5224AF

#5224AF is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.200 H 289.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5224AF
RGBrgb(82, 36, 175)
HSLhsl(260, 66%, 41%)
HSVhsv(260, 79%, 69%)
CMYKcmyk(53.1%, 79.4%, 0%, 31.4%)
CIE-LABlab(29.79, 52.39, -65.61)
CIE-LCHlch(29.79, 83.96, 308.61°)
OKLaboklab(41.86% 0.0678 -0.1887)
OKLCHoklch(41.86% 0.2 289.8)
XYZxyz(11.8462, 6.1502, 41.1120)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224AF #81AF24
analogous
#243CAF #5224AF #9824AF
triadic
#5224AF #AF5224 #24AF52
tetradic
#5224AF #AF243C #81AF24 #24AF98
square
#5224AF #AF243C #81AF24 #24AF98
split-complementary
#5224AF #AF9824 #3CAF24
monochromatic
#220F49 #3A1A7C #5224AF #6E3AD6 #936DE1

Accessibility & contrast

On white

9.42
#5224AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5224AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224AF
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224AF#FFFFFF#000000##FFFFFF
##5224AF1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2F4C6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5224af;
/* rgb */ color: rgb(82, 36, 175);
/* oklch */ color: oklch(41.9% 0.200 289.8);
Tailwind
colors: {
  custom: {
    50: '#8d65c8',
    500: '#5224af',
    950: '#000000',
  },
}
SCSS
$custom: #5224af;
$custom-light: #8d65c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5224af",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 175
  },
  "hsl": {
    "h": 259.856,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41856,
    "c": 0.20048,
    "h": 289.8
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#5224AF
secondary
#A8C768
accent
#E93FB1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5224AF

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

Preview Lab → · Contrast checker → · Palette generator →

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