#5223CA#5223CA

#5223CA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.5% C 0.230 H 284.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5223CA
RGBrgb(82, 35, 202)
HSLhsl(257, 70%, 46%)
HSVhsv(257, 83%, 79%)
CMYKcmyk(59.4%, 82.7%, 0%, 20.8%)
CIE-LABlab(32.39, 60.04, -77.28)
CIE-LCHlch(32.39, 97.86, 307.85°)
OKLaboklab(44.47% 0.0594 -0.2227)
OKLCHoklch(44.47% 0.23 284.9)
XYZxyz(14.7381, 7.2592, 56.4902)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223CA #9BCA23
analogous
#2348CA #5223CA #A623CA
triadic
#5223CA #CA5223 #23CA52
tetradic
#5223CA #CA2348 #9BCA23 #23CAA6
square
#5223CA #CA2348 #9BCA23 #23CAA6
split-complementary
#5223CA #CAA623 #48CA23
monochromatic
#281162 #3D1A96 #5223CA #744AE0 #9D7FE9

Accessibility & contrast

On white

8.56
#5223CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5223CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223CA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223CA#FFFFFF#000000##FFFFFF
##5223CA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5223ca;
/* rgb */ color: rgb(82, 35, 202);
/* oklch */ color: oklch(44.5% 0.230 284.9);
Tailwind
colors: {
  custom: {
    50: '#9166dc',
    500: '#5223ca',
    950: '#000000',
  },
}
SCSS
$custom: #5223ca;
$custom-light: #9166dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5223ca",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 256.886,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.23048,
    "h": 284.9
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#5223CA
secondary
#B8D178
accent
#ED3BBB
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5223CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5223CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva