#5822A1#5822A1

#5822A1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.187 H 296.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5822A1
RGBrgb(88, 34, 161)
HSLhsl(266, 65%, 38%)
HSVhsv(266, 79%, 63%)
CMYKcmyk(45.3%, 78.9%, 0%, 36.9%)
CIE-LABlab(28.88, 50.42, -58.64)
CIE-LCHlch(28.88, 77.33, 310.69°)
OKLaboklab(40.98% 0.0829 -0.168)
OKLCHoklch(40.98% 0.187 296.3)
XYZxyz(11.0278, 5.7917, 34.2482)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5822A1 #6BA122
analogous
#222BA1 #5822A1 #9722A1
triadic
#5822A1 #A15822 #22A158
tetradic
#5822A1 #A1222B #6BA122 #22A197
square
#5822A1 #A1222B #6BA122 #22A197
split-complementary
#5822A1 #A19722 #2BA122
monochromatic
#210D3C #3C176E #5822A1 #742DD3 #9560DD

Accessibility & contrast

On white

9.73
#5822A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5822A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5822A1
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5822A1#FFFFFF#000000##FFFFFF
##5822A11.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#444561
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5822a1;
/* rgb */ color: rgb(88, 34, 161);
/* oklch */ color: oklch(41.0% 0.187 296.3);
Tailwind
colors: {
  custom: {
    50: '#8f64be',
    500: '#5822a1',
    950: '#000000',
  },
}
SCSS
$custom: #5822a1;
$custom-light: #8f64be;
$custom-dark: #000000;
JSON
{
  "hex": "#5822a1",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 265.512,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40984,
    "c": 0.18735,
    "h": 296.3
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#5822A1
secondary
#97C25D
accent
#E840A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5822A1

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

Preview Lab → · Contrast checker → · Palette generator →

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