#5228B6#5228B6

#5228B6 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.205 H 287.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5228B6
RGBrgb(82, 40, 182)
HSLhsl(258, 64%, 44%)
HSVhsv(258, 78%, 71%)
CMYKcmyk(54.9%, 78%, 0%, 28.6%)
CIE-LABlab(31.09, 52.52, -67.65)
CIE-LCHlch(31.09, 85.64, 307.83°)
OKLaboklab(42.97% 0.0629 -0.1947)
OKLCHoklch(42.97% 0.205 287.9)
XYZxyz(12.6795, 6.6882, 44.8697)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228B6 #8CB628
analogous
#2845B6 #5228B6 #9928B6
triadic
#5228B6 #B65228 #28B652
tetradic
#5228B6 #B62845 #8CB628 #28B699
square
#5228B6 #B62845 #8CB628 #28B699
split-complementary
#5228B6 #B69928 #45B628
monochromatic
#251252 #3B1D84 #5228B6 #7045D6 #9777E1

Accessibility & contrast

On white

8.98
#5228B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5228B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228B6
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228B6#FFFFFF#000000##FFFFFF
##5228B61.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#27516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5228b6;
/* rgb */ color: rgb(82, 40, 182);
/* oklch */ color: oklch(43.0% 0.205 287.9);
Tailwind
colors: {
  custom: {
    50: '#8e67cd',
    500: '#5228b6',
    950: '#000000',
  },
}
SCSS
$custom: #5228b6;
$custom-light: #8e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5228b6",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 257.746,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42965,
    "c": 0.20457,
    "h": 287.9
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#5228B6
secondary
#AFC971
accent
#E741B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #5228B6

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

Preview Lab → · Contrast checker → · Palette generator →

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