#5228BA#5228BA

#5228BA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.209 H 287.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5228BA
RGBrgb(82, 40, 186)
HSLhsl(257, 65%, 44%)
HSVhsv(257, 78%, 73%)
CMYKcmyk(55.9%, 78.5%, 0%, 27.1%)
CIE-LABlab(31.48, 53.63, -69.38)
CIE-LCHlch(31.48, 87.69, 307.70°)
OKLaboklab(43.35% 0.0617 -0.1997)
OKLCHoklch(43.35% 0.209 287.2)
XYZxyz(13.0987, 6.8559, 47.0780)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228BA #90BA28
analogous
#2847BA #5228BA #9B28BA
triadic
#5228BA #BA5228 #28BA52
tetradic
#5228BA #BA2847 #90BA28 #28BA9B
square
#5228BA #BA2847 #90BA28 #28BA9B
split-complementary
#5228BA #BA9B28 #47BA28
monochromatic
#261255 #3C1D88 #5228BA #7148D8 #987AE2

Accessibility & contrast

On white

8.86
#5228BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5228BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228BA
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228BA#FFFFFF#000000##FFFFFF
##5228BA1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#235371
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5228ba;
/* rgb */ color: rgb(82, 40, 186);
/* oklch */ color: oklch(43.4% 0.209 287.2);
Tailwind
colors: {
  custom: {
    50: '#8e68d0',
    500: '#5228ba',
    950: '#000000',
  },
}
SCSS
$custom: #5228ba;
$custom-light: #8e68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ba",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 257.26,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.20904,
    "h": 287.2
  },
  "luminance": 0.06857
}

Semantic roles & 50–950 ramp

primary
#5228BA
secondary
#B1CA73
accent
#E840B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5228BA

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

Preview Lab → · Contrast checker → · Palette generator →

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