#5822A6#5822A6

#5822A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.193 H 295.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5822A6
RGBrgb(88, 34, 166)
HSLhsl(265, 66%, 39%)
HSVhsv(265, 80%, 65%)
CMYKcmyk(47%, 79.5%, 0%, 34.9%)
CIE-LABlab(29.34, 51.70, -60.91)
CIE-LCHlch(29.34, 79.89, 310.33°)
OKLaboklab(41.45% 0.0814 -0.1747)
OKLCHoklch(41.45% 0.193 295)
XYZxyz(11.4776, 5.9716, 36.6169)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5822A6 #70A622
analogous
#222EA6 #5822A6 #9A22A6
triadic
#5822A6 #A65822 #22A658
tetradic
#5822A6 #A6222E #70A622 #22A69A
square
#5822A6 #A6222E #70A622 #22A69A
split-complementary
#5822A6 #A69A22 #2EA622
monochromatic
#220D40 #3D1873 #5822A6 #7430D5 #9663DF

Accessibility & contrast

On white

9.57
#5822A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5822A6
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5822A6#FFFFFF#000000##FFFFFF
##5822A61.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#414764
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5822a6;
/* rgb */ color: rgb(88, 34, 166);
/* oklch */ color: oklch(41.4% 0.193 295.0);
Tailwind
colors: {
  custom: {
    50: '#8f64c2',
    500: '#5822a6',
    950: '#000000',
  },
}
SCSS
$custom: #5822a6;
$custom-light: #8f64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5822a6",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 264.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41445,
    "c": 0.1927,
    "h": 295
  },
  "luminance": 0.05972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5822A6

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

Preview Lab → · Contrast checker → · Palette generator →

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