#5224E3#5224E3

#5224E3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.2% C 0.256 H 281.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5224E3
RGBrgb(82, 36, 227)
HSLhsl(254, 77%, 52%)
HSVhsv(254, 84%, 89%)
CMYKcmyk(63.9%, 84.1%, 0%, 11%)
CIE-LABlab(35.20, 66.28, -87.06)
CIE-LCHlch(35.20, 109.42, 307.28°)
OKLaboklab(47.18% 0.0502 -0.2512)
OKLCHoklch(47.18% 0.256 281.3)
XYZxyz(17.9713, 8.6003, 73.3711)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224E3 #B5E324
analogous
#2456E3 #5224E3 #B124E3
triadic
#5224E3 #E35224 #24E352
tetradic
#5224E3 #E32456 #B5E324 #24E3B1
square
#5224E3 #E32456 #B5E324 #24E3B1
split-complementary
#5224E3 #E3B124 #56E324
monochromatic
#2A107D #3C17B3 #5224E3 #7D5AEA #A891F1

Accessibility & contrast

On white

7.72
#5224E3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5224E3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224E3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224E3#FFFFFF#000000##FFFFFF
##5224E31.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E8
Deuteranopia (green-blind)
#004CE0
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5224e3;
/* rgb */ color: rgb(82, 36, 227);
/* oklch */ color: oklch(47.2% 0.256 281.3);
Tailwind
colors: {
  custom: {
    50: '#9668ed',
    500: '#5224e3',
    950: '#000000',
  },
}
SCSS
$custom: #5224e3;
$custom-light: #9668ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5224e3",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 227
  },
  "hsl": {
    "h": 254.45,
    "s": 77.328,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47184,
    "c": 0.25616,
    "h": 281.3
  },
  "luminance": 0.08602
}

Semantic roles & 50–950 ramp

primary
#5224E3
secondary
#C7DB87
accent
#F434C6
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5224E3

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

Preview Lab → · Contrast checker → · Palette generator →

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