#5224A7#5224A7

#5224A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.192 H 291.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5224A7
RGBrgb(82, 36, 167)
HSLhsl(261, 65%, 40%)
HSVhsv(261, 78%, 65%)
CMYKcmyk(50.9%, 78.4%, 0%, 34.5%)
CIE-LABlab(29.02, 50.23, -62.07)
CIE-LCHlch(29.02, 79.85, 308.98°)
OKLaboklab(41.09% 0.0703 -0.1783)
OKLCHoklch(41.09% 0.192 291.5)
XYZxyz(11.0836, 5.8452, 37.0960)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224A7 #79A724
analogous
#2437A7 #5224A7 #9424A7
triadic
#5224A7 #A75224 #24A752
tetradic
#5224A7 #A72437 #79A724 #24A794
square
#5224A7 #A72437 #79A724 #24A794
split-complementary
#5224A7 #A79424 #37A724
monochromatic
#210E42 #391975 #5224A7 #6C35D3 #9167DE

Accessibility & contrast

On white

9.68
#5224A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5224A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224A7
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224A7#FFFFFF#000000##FFFFFF
##5224A71.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#354965
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5224a7;
/* rgb */ color: rgb(82, 36, 167);
/* oklch */ color: oklch(41.1% 0.192 291.5);
Tailwind
colors: {
  custom: {
    50: '#8c65c2',
    500: '#5224a7',
    950: '#000000',
  },
}
SCSS
$custom: #5224a7;
$custom-light: #8c65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5224a7",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 261.069,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41087,
    "c": 0.19165,
    "h": 291.5
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#5224A7
secondary
#A2C463
accent
#E840AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5224A7

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

Preview Lab → · Contrast checker → · Palette generator →

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