#5C21BD#5C21BD

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

Color values

HEX#5C21BD
RGBrgb(92, 33, 189)
HSLhsl(263, 70%, 44%)
HSVhsv(263, 83%, 74%)
CMYKcmyk(51.3%, 82.5%, 0%, 25.9%)
CIE-LABlab(31.89, 58.51, -70.43)
CIE-LCHlch(31.89, 91.57, 309.72°)
OKLaboklab(43.98% 0.0806 -0.2024)
OKLCHoklch(43.98% 0.218 291.7)
XYZxyz(14.1402, 7.0366, 48.7474)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C21BD #82BD21
analogous
#2134BD #5C21BD #AA21BD
triadic
#5C21BD #BD5C21 #21BD5C
tetradic
#5C21BD #BD2134 #82BD21 #21BDAA
square
#5C21BD #BD2134 #82BD21 #21BDAA
split-complementary
#5C21BD #BDAA21 #34BD21
monochromatic
#290F55 #431889 #5C21BD #7A3EDD #9E72E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C21BD#FFFFFF#000000##FFFFFF
##5C21BD1.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)
#004DC1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#3A5071
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c21bd;
/* rgb */ color: rgb(92, 33, 189);
/* oklch */ color: oklch(44.0% 0.218 291.7);
Tailwind
colors: {
  custom: {
    50: '#9565d2',
    500: '#5c21bd',
    950: '#000000',
  },
}
SCSS
$custom: #5c21bd;
$custom-light: #9565d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c21bd",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 262.692,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43984,
    "c": 0.21786,
    "h": 291.7
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#5C21BD
secondary
#A9CD6D
accent
#ED3BAA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5C21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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