#5228AC#5228AC

#5228AC is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.193 H 289.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5228AC
RGBrgb(82, 40, 172)
HSLhsl(259, 62%, 42%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(52.3%, 76.7%, 0%, 32.5%)
CIE-LABlab(30.13, 49.76, -63.25)
CIE-LCHlch(30.13, 80.48, 308.19°)
OKLaboklab(42.01% 0.0658 -0.1818)
OKLCHoklch(42.01% 0.193 289.9)
XYZxyz(11.6827, 6.2895, 39.6201)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228AC #82AC28
analogous
#2840AC #5228AC #9428AC
triadic
#5228AC #AC5228 #28AC52
tetradic
#5228AC #AC2840 #82AC28 #28AC94
square
#5228AC #AC2840 #82AC28 #28AC94
split-complementary
#5228AC #AC9428 #40AC28
monochromatic
#231149 #3A1C7A #5228AC #6E3FD2 #9371DE

Accessibility & contrast

On white

9.30
#5228AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5228AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5228AC#FFFFFF#000000##FFFFFF
##5228AC1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#314D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5228ac;
/* rgb */ color: rgb(82, 40, 172);
/* oklch */ color: oklch(42.0% 0.193 289.9);
Tailwind
colors: {
  custom: {
    50: '#8c67c6',
    500: '#5228ac',
    950: '#000000',
  },
}
SCSS
$custom: #5228ac;
$custom-light: #8c67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ac",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 259.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42009,
    "c": 0.19332,
    "h": 289.9
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#5228AC
secondary
#A8C56B
accent
#E542B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5228AC

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

Preview Lab → · Contrast checker → · Palette generator →

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