#5221C3#5221C3

#5221C3 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.6% C 0.225 H 286.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5221C3
RGBrgb(82, 33, 195)
HSLhsl(258, 71%, 45%)
HSVhsv(258, 83%, 76%)
CMYKcmyk(57.9%, 83.1%, 0%, 23.5%)
CIE-LABlab(31.40, 58.95, -74.82)
CIE-LCHlch(31.40, 95.25, 308.24°)
OKLaboklab(43.57% 0.0629 -0.2155)
OKLCHoklch(43.57% 0.225 286.3)
XYZxyz(13.8709, 6.8209, 52.2048)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221C3 #92C321
analogous
#2141C3 #5221C3 #A321C3
triadic
#5221C3 #C35221 #21C352
tetradic
#5221C3 #C32141 #92C321 #21C3A3
square
#5221C3 #C32141 #92C321 #21C3A3
split-complementary
#5221C3 #C3A321 #41C321
monochromatic
#260F5A #3C188F #5221C3 #7242DF #9977E8

Accessibility & contrast

On white

8.88
#5221C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5221C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221C3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221C3#FFFFFF#000000##FFFFFF
##5221C31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC7
Deuteranopia (green-blind)
#0045C0
Tritanopia (blue-blind)
#145475
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5221c3;
/* rgb */ color: rgb(82, 33, 195);
/* oklch */ color: oklch(43.6% 0.225 286.3);
Tailwind
colors: {
  custom: {
    50: '#9065d7',
    500: '#5221c3',
    950: '#000000',
  },
}
SCSS
$custom: #5221c3;
$custom-light: #9065d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5221c3",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 258.148,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43571,
    "c": 0.2245,
    "h": 286.3
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#5221C3
secondary
#B3CF71
accent
#EE3AB7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5221C3

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

Preview Lab → · Contrast checker → · Palette generator →

#5221C3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva