#5224FF#5224FF

#5224FF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 50.2% C 0.285 H 278.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5224FF
RGBrgb(82, 36, 255)
HSLhsl(253, 100%, 57%)
HSVhsv(253, 86%, 100%)
CMYKcmyk(67.8%, 85.9%, 0%, 0%)
CIE-LABlab(38.33, 73.54, -97.71)
CIE-LCHlch(38.33, 122.29, 306.96°)
OKLaboklab(50.22% 0.0407 -0.2821)
OKLCHoklch(50.22% 0.285 278.2)
XYZxyz(22.1547, 10.2736, 95.4038)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224FF #D1FF24
analogous
#2463FF #5224FF #C024FF
triadic
#5224FF #FF5224 #24FF52
tetradic
#5224FF #FF2463 #D1FF24 #24FFC0
square
#5224FF #FF2463 #D1FF24 #24FFC0
split-complementary
#5224FF #FFC024 #63FF24
monochromatic
#2300A9 #3000E6 #5224FF #8261FF #B39EFF

Accessibility & contrast

On white

6.87
#5224FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5224FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5224FF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224FF#FFFFFF#000000##FFFFFF
##5224FF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062FF
Deuteranopia (green-blind)
#0051FB
Tritanopia (blue-blind)
#006E99
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5224ff;
/* rgb */ color: rgb(82, 36, 255);
/* oklch */ color: oklch(50.2% 0.285 278.2);
Tailwind
colors: {
  custom: {
    50: '#9b6bff',
    500: '#5224ff',
    950: '#000000',
  },
}
SCSS
$custom: #5224ff;
$custom-light: #9b6bff;
$custom-dark: #000000;
JSON
{
  "hex": "#5224ff",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 255
  },
  "hsl": {
    "h": 252.603,
    "s": 100,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50215,
    "c": 0.28503,
    "h": 278.2
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#5224FF
secondary
#D9EC93
accent
#FF29D2
background
#FAF6FF
surface
#F4ECFF
border
#CEC7D7
text
#100718
muted
#7F7A86

Preview Lab

Preview with #5224FF

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

Preview Lab → · Contrast checker → · Palette generator →

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