#5228BC#5228BC

#5228BC is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.211 H 286.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5228BC
RGBrgb(82, 40, 188)
HSLhsl(257, 65%, 45%)
HSVhsv(257, 79%, 74%)
CMYKcmyk(56.4%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.67, 54.18, -70.24)
CIE-LCHlch(31.67, 88.70, 307.64°)
OKLaboklab(43.55% 0.0611 -0.2022)
OKLCHoklch(43.55% 0.211 286.8)
XYZxyz(13.3128, 6.9415, 48.2056)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228BC #92BC28
analogous
#2848BC #5228BC #9C28BC
triadic
#5228BC #BC5228 #28BC52
tetradic
#5228BC #BC2848 #92BC28 #28BC9C
square
#5228BC #BC2848 #92BC28 #28BC9C
split-complementary
#5228BC #BC9C28 #48BC28
monochromatic
#261357 #3C1D8A #5228BC #7249D8 #997BE3

Accessibility & contrast

On white

8.79
#5228BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5228BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228BC
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228BC#FFFFFF#000000##FFFFFF
##5228BC1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#205372
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5228bc;
/* rgb */ color: rgb(82, 40, 188);
/* oklch */ color: oklch(43.5% 0.211 286.8);
Tailwind
colors: {
  custom: {
    50: '#8f68d1',
    500: '#5228bc',
    950: '#000000',
  },
}
SCSS
$custom: #5228bc;
$custom-light: #8f68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5228bc",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 257.027,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4355,
    "c": 0.21125,
    "h": 286.8
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#5228BC
secondary
#B3CB75
accent
#E840B8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5228BC

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

Preview Lab → · Contrast checker → · Palette generator →

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