#5224B1#5224B1

#5224B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.203 H 289.4°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5224B1
RGBrgb(82, 36, 177)
HSLhsl(260, 66%, 42%)
HSVhsv(260, 80%, 69%)
CMYKcmyk(53.7%, 79.7%, 0%, 30.6%)
CIE-LABlab(29.98, 52.93, -66.48)
CIE-LCHlch(29.98, 84.98, 308.53°)
OKLaboklab(42.05% 0.0672 -0.1912)
OKLCHoklch(42.05% 0.203 289.4)
XYZxyz(12.0440, 6.2293, 42.1542)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5224B1 #83B124
analogous
#243DB1 #5224B1 #9824B1
triadic
#5224B1 #B15224 #24B152
tetradic
#5224B1 #B1243D #83B124 #24B198
square
#5224B1 #B1243D #83B124 #24B198
split-complementary
#5224B1 #B19824 #3DB124
monochromatic
#230F4B #3A1A7E #5224B1 #6E3BD7 #946EE1

Accessibility & contrast

On white

9.35
#5224B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5224B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5224B1
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5224B1#FFFFFF#000000##FFFFFF
##5224B11.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#2D4D6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5224b1;
/* rgb */ color: rgb(82, 36, 177);
/* oklch */ color: oklch(42.1% 0.203 289.4);
Tailwind
colors: {
  custom: {
    50: '#8d65ca',
    500: '#5224b1',
    950: '#000000',
  },
}
SCSS
$custom: #5224b1;
$custom-light: #8d65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5224b1",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 259.574,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.20268,
    "h": 289.4
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#5224B1
secondary
#A9C869
accent
#E93FB2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5224B1

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

Preview Lab → · Contrast checker → · Palette generator →

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