#5228CA#5228CA

#5228CA is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.227 H 284.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5228CA
RGBrgb(82, 40, 202)
HSLhsl(256, 67%, 47%)
HSVhsv(256, 80%, 79%)
CMYKcmyk(59.4%, 80.2%, 0%, 20.8%)
CIE-LABlab(33.08, 58.02, -76.13)
CIE-LCHlch(33.08, 95.72, 307.31°)
OKLaboklab(44.95% 0.0567 -0.2194)
OKLCHoklch(44.95% 0.227 284.5)
XYZxyz(14.8959, 7.5747, 56.5428)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228CA #A0CA28
analogous
#284FCA #5228CA #A328CA
triadic
#5228CA #CA5228 #28CA52
tetradic
#5228CA #CA284F #A0CA28 #28CAA3
square
#5228CA #CA284F #A0CA28 #28CAA3
split-complementary
#5228CA #CAA328 #4FCA28
monochromatic
#291464 #3D1E97 #5228CA #7652DD #9F85E7

Accessibility & contrast

On white

8.35
#5228CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5228CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228CA
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228CA#FFFFFF#000000##FFFFFF
##5228CA1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0049C7
Tritanopia (blue-blind)
#00597A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5228ca;
/* rgb */ color: rgb(82, 40, 202);
/* oklch */ color: oklch(44.9% 0.227 284.5);
Tailwind
colors: {
  custom: {
    50: '#9169dc',
    500: '#5228ca',
    950: '#000000',
  },
}
SCSS
$custom: #5228ca;
$custom-light: #9169dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ca",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 255.556,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44947,
    "c": 0.22665,
    "h": 284.5
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#5228CA
secondary
#BBD07E
accent
#EA3EBD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5228CA

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

Preview Lab → · Contrast checker → · Palette generator →

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