#5821BC#5821BC

#5821BC is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.5% C 0.217 H 290.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5821BC
RGBrgb(88, 33, 188)
HSLhsl(261, 70%, 43%)
HSVhsv(261, 82%, 74%)
CMYKcmyk(53.2%, 82.4%, 0%, 26.3%)
CIE-LABlab(31.33, 57.78, -70.78)
CIE-LCHlch(31.33, 91.37, 309.23°)
OKLaboklab(43.46% 0.0747 -0.2035)
OKLCHoklch(43.46% 0.217 290.2)
XYZxyz(13.6428, 6.7926, 48.1595)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5821BC #85BC21
analogous
#2138BC #5821BC #A521BC
triadic
#5821BC #BC5821 #21BC58
tetradic
#5821BC #BC2138 #85BC21 #21BCA5
square
#5821BC #BC2138 #85BC21 #21BCA5
split-complementary
#5821BC #BCA521 #38BC21
monochromatic
#270F54 #401888 #5821BC #763DDD #9B71E6

Accessibility & contrast

On white

8.90
#5821BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5821BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5821BC
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5821BC#FFFFFF#000000##FFFFFF
##5821BC1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#325071
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5821bc;
/* rgb */ color: rgb(88, 33, 188);
/* oklch */ color: oklch(43.5% 0.217 290.2);
Tailwind
colors: {
  custom: {
    50: '#9265d1',
    500: '#5821bc',
    950: '#000000',
  },
}
SCSS
$custom: #5821bc;
$custom-light: #9265d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5821bc",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 261.29,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43464,
    "c": 0.21682,
    "h": 290.2
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

primary
#5821BC
secondary
#AACD6C
accent
#ED3BAE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5821BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5821BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva