#5822D3#5822D3

#5822D3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.9% C 0.240 H 285.9°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5822D3
RGBrgb(88, 34, 211)
HSLhsl(258, 72%, 48%)
HSVhsv(258, 84%, 83%)
CMYKcmyk(58.3%, 83.9%, 0%, 17.3%)
CIE-LABlab(33.82, 63.35, -80.13)
CIE-LCHlch(33.82, 102.15, 308.33°)
OKLaboklab(45.87% 0.0659 -0.2308)
OKLCHoklch(45.87% 0.24 285.9)
XYZxyz(16.3508, 7.9209, 62.2827)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5822D3 #9DD322
analogous
#2244D3 #5822D3 #B022D3
triadic
#5822D3 #D35822 #22D358
tetradic
#5822D3 #D32244 #9DD322 #22D3B0
square
#5822D3 #D32244 #9DD322 #22D3B0
split-complementary
#5822D3 #D3B022 #44D322
monochromatic
#2C116A #421A9E #5822D3 #7C4FE3 #A484EB

Accessibility & contrast

On white

8.13
#5822D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5822D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5822D3
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5822D3#FFFFFF#000000##FFFFFF
##5822D31.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D8
Deuteranopia (green-blind)
#004AD0
Tritanopia (blue-blind)
#0F5A7E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5822d3;
/* rgb */ color: rgb(88, 34, 211);
/* oklch */ color: oklch(45.9% 0.240 285.9);
Tailwind
colors: {
  custom: {
    50: '#9667e2',
    500: '#5822d3',
    950: '#000000',
  },
}
SCSS
$custom: #5822d3;
$custom-light: #9667e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5822d3",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 211
  },
  "hsl": {
    "h": 258.305,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.24005,
    "h": 285.9
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#5822D3
secondary
#B9D47D
accent
#EF39B7
background
#FAF6FE
surface
#F3EBFC
border
#CDC6D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5822D3

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

Preview Lab → · Contrast checker → · Palette generator →

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