#5228AA#5228AA

#5228AA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.191 H 290.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5228AA
RGBrgb(82, 40, 170)
HSLhsl(259, 62%, 41%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(51.8%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.94, 49.21, -62.35)
CIE-LCHlch(29.94, 79.43, 308.28°)
OKLaboklab(41.82% 0.0664 -0.1792)
OKLCHoklch(41.82% 0.191 290.3)
XYZxyz(11.4921, 6.2132, 38.6162)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228AA #80AA28
analogous
#283FAA #5228AA #9328AA
triadic
#5228AA #AA5228 #28AA52
tetradic
#5228AA #AA283F #80AA28 #28AA93
square
#5228AA #AA283F #80AA28 #28AA93
split-complementary
#5228AA #AA9328 #3FAA28
monochromatic
#221147 #3A1C78 #5228AA #6D3ED2 #936FDD

Accessibility & contrast

On white

9.36
#5228AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5228AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5228AA#FFFFFF#000000##FFFFFF
##5228AA1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#324C68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5228aa;
/* rgb */ color: rgb(82, 40, 170);
/* oklch */ color: oklch(41.8% 0.191 290.3);
Tailwind
colors: {
  custom: {
    50: '#8c67c4',
    500: '#5228aa',
    950: '#000000',
  },
}
SCSS
$custom: #5228aa;
$custom-light: #8c67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5228aa",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 259.385,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4182,
    "c": 0.19106,
    "h": 290.3
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#5228AA
secondary
#A7C46A
accent
#E543B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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