#5228AB#5228AB

#5228AB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.192 H 290.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5228AB
RGBrgb(82, 40, 171)
HSLhsl(259, 62%, 41%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(52%, 76.6%, 0%, 32.9%)
CIE-LABlab(30.04, 49.48, -62.80)
CIE-LCHlch(30.04, 79.95, 308.24°)
OKLaboklab(41.91% 0.0661 -0.1805)
OKLCHoklch(41.91% 0.192 290.1)
XYZxyz(11.5870, 6.2512, 39.1163)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228AB #81AB28
analogous
#2840AB #5228AB #9428AB
triadic
#5228AB #AB5228 #28AB52
tetradic
#5228AB #AB2840 #81AB28 #28AB94
square
#5228AB #AB2840 #81AB28 #28AB94
split-complementary
#5228AB #AB9428 #40AB28
monochromatic
#221148 #3A1C79 #5228AB #6E3ED2 #9370DE

Accessibility & contrast

On white

9.33
#5228AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5228AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5228AB#FFFFFF#000000##FFFFFF
##5228AB1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#324D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5228ab;
/* rgb */ color: rgb(82, 40, 171);
/* oklch */ color: oklch(41.9% 0.192 290.1);
Tailwind
colors: {
  custom: {
    50: '#8c67c5',
    500: '#5228ab',
    950: '#000000',
  },
}
SCSS
$custom: #5228ab;
$custom-light: #8c67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ab",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 259.237,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41914,
    "c": 0.19219,
    "h": 290.1
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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