#5822A0#5822A0

#5822A0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.186 H 296.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5822A0
RGBrgb(88, 34, 160)
HSLhsl(266, 65%, 38%)
HSVhsv(266, 79%, 63%)
CMYKcmyk(45%, 78.8%, 0%, 37.3%)
CIE-LABlab(28.79, 50.16, -58.18)
CIE-LCHlch(28.79, 76.81, 310.77°)
OKLaboklab(40.89% 0.0832 -0.1667)
OKLCHoklch(40.89% 0.186 296.5)
XYZxyz(10.9400, 5.7566, 33.7856)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5822A0 #6AA022
analogous
#222BA0 #5822A0 #9722A0
triadic
#5822A0 #A05822 #22A058
tetradic
#5822A0 #A0222B #6AA022 #22A097
square
#5822A0 #A0222B #6AA022 #22A097
split-complementary
#5822A0 #A09722 #2BA022
monochromatic
#200D3B #3C176E #5822A0 #742DD2 #955FDD

Accessibility & contrast

On white

9.76
#5822A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5822A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5822A0
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5822A0#FFFFFF#000000##FFFFFF
##5822A01.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#444561
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5822a0;
/* rgb */ color: rgb(88, 34, 160);
/* oklch */ color: oklch(40.9% 0.186 296.5);
Tailwind
colors: {
  custom: {
    50: '#8f64bd',
    500: '#5822a0',
    950: '#000000',
  },
}
SCSS
$custom: #5822a0;
$custom-light: #8f64bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5822a0",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 265.714,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40893,
    "c": 0.18628,
    "h": 296.5
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#5822A0
secondary
#96C25C
accent
#E840A0
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5822A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5822A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva