#5D21BC#5D21BC

#5D21BC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 44.0% C 0.217 H 292.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5D21BC
RGBrgb(93, 33, 188)
HSLhsl(263, 70%, 43%)
HSVhsv(263, 82%, 74%)
CMYKcmyk(50.5%, 82.4%, 0%, 26.3%)
CIE-LABlab(31.91, 58.38, -69.80)
CIE-LCHlch(31.91, 91.00, 309.91°)
OKLaboklab(44% 0.0825 -0.2005)
OKLCHoklch(44% 0.217 292.4)
XYZxyz(14.1326, 7.0452, 48.1824)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D21BC #80BC21
analogous
#2132BC #5D21BC #AA21BC
triadic
#5D21BC #BC5D21 #21BC5D
tetradic
#5D21BC #BC2132 #80BC21 #21BCAA
square
#5D21BC #BC2132 #80BC21 #21BCAA
split-complementary
#5D21BC #BCAA21 #32BC21
monochromatic
#290F54 #431888 #5D21BC #7B3DDD #9F71E6

Accessibility & contrast

On white

8.72
#5D21BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D21BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D21BC
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D21BC#FFFFFF#000000##FFFFFF
##5D21BC1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#3D5071
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d21bc;
/* rgb */ color: rgb(93, 33, 188);
/* oklch */ color: oklch(44.0% 0.217 292.4);
Tailwind
colors: {
  custom: {
    50: '#9566d1',
    500: '#5d21bc',
    950: '#000000',
  },
}
SCSS
$custom: #5d21bc;
$custom-light: #9566d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d21bc",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 263.226,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43995,
    "c": 0.21685,
    "h": 292.4
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#5D21BC
secondary
#A7CD6C
accent
#ED3BA8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5D21BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5D21BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva