#5822A5#5822A5

#5822A5 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.192 H 295.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5822A5
RGBrgb(88, 34, 165)
HSLhsl(265, 66%, 39%)
HSVhsv(265, 79%, 65%)
CMYKcmyk(46.7%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.25, 51.45, -60.46)
CIE-LCHlch(29.25, 79.38, 310.40°)
OKLaboklab(41.35% 0.0817 -0.1733)
OKLCHoklch(41.35% 0.192 295.2)
XYZxyz(11.3862, 5.9351, 36.1357)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5822A5 #6FA522
analogous
#222EA5 #5822A5 #9A22A5
triadic
#5822A5 #A55822 #22A558
tetradic
#5822A5 #A5222E #6FA522 #22A59A
square
#5822A5 #A5222E #6FA522 #22A59A
split-complementary
#5822A5 #A59A22 #2EA522
monochromatic
#220D40 #3D1872 #5822A5 #7430D4 #9663DF

Accessibility & contrast

On white

9.60
#5822A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5822A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5822A5
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5822A5#FFFFFF#000000##FFFFFF
##5822A51.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#424763
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5822a5;
/* rgb */ color: rgb(88, 34, 165);
/* oklch */ color: oklch(41.4% 0.192 295.2);
Tailwind
colors: {
  custom: {
    50: '#8f64c1',
    500: '#5822a5',
    950: '#000000',
  },
}
SCSS
$custom: #5822a5;
$custom-light: #8f64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5822a5",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 264.733,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41353,
    "c": 0.19163,
    "h": 295.2
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5822A5
secondary
#9AC45F
accent
#E93FA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5822A5

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

Preview Lab → · Contrast checker → · Palette generator →

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