#5D21A7#5D21A7

#5D21A7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.195 H 297.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5D21A7
RGBrgb(93, 33, 167)
HSLhsl(267, 67%, 39%)
HSVhsv(267, 80%, 65%)
CMYKcmyk(44.3%, 80.2%, 0%, 34.5%)
CIE-LABlab(29.92, 53.11, -60.53)
CIE-LCHlch(29.92, 80.53, 311.26°)
OKLaboklab(42.02% 0.0895 -0.1734)
OKLCHoklch(42.02% 0.195 297.3)
XYZxyz(12.0313, 6.2046, 37.1155)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D21A7 #6BA721
analogous
#2128A7 #5D21A7 #A021A7
triadic
#5D21A7 #A75D21 #21A75D
tetradic
#5D21A7 #A72128 #6BA721 #21A7A0
square
#5D21A7 #A72128 #6BA721 #21A7A0
split-complementary
#5D21A7 #A7A021 #28A721
monochromatic
#240D41 #411774 #5D21A7 #7A2FD6 #9B62E0

Accessibility & contrast

On white

9.37
#5D21A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D21A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D21A7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D21A7#FFFFFF#000000##FFFFFF
##5D21A71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#494764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d21a7;
/* rgb */ color: rgb(93, 33, 167);
/* oklch */ color: oklch(42.0% 0.195 297.3);
Tailwind
colors: {
  custom: {
    50: '#9264c2',
    500: '#5d21a7',
    950: '#000000',
  },
}
SCSS
$custom: #5d21a7;
$custom-light: #9264c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d21a7",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 266.866,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42018,
    "c": 0.19513,
    "h": 297.3
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#5D21A7
secondary
#97C55F
accent
#EA3E9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D21A7

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

Preview Lab → · Contrast checker → · Palette generator →

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