#5D21A4#5D21A4

#5D21A4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.192 H 298.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5D21A4
RGBrgb(93, 33, 164)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 80%, 64%)
CMYKcmyk(43.3%, 79.9%, 0%, 35.7%)
CIE-LABlab(29.65, 52.36, -59.17)
CIE-LCHlch(29.65, 79.01, 311.51°)
OKLaboklab(41.75% 0.0904 -0.1694)
OKLCHoklch(41.75% 0.192 298.1)
XYZxyz(11.7572, 6.0950, 35.6718)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D21A4 #68A421
analogous
#2126A4 #5D21A4 #9E21A4
triadic
#5D21A4 #A45D21 #21A45D
tetradic
#5D21A4 #A42126 #68A421 #21A49E
square
#5D21A4 #A42126 #68A421 #21A49E
split-complementary
#5D21A4 #A49E21 #26A421
monochromatic
#230C3E #401771 #5D21A4 #7A2DD5 #9A60DF

Accessibility & contrast

On white

9.46
#5D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D21A4
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D21A4#FFFFFF#000000##FFFFFF
##5D21A41.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#4B4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d21a4;
/* rgb */ color: rgb(93, 33, 164);
/* oklch */ color: oklch(41.7% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#9264c0',
    500: '#5d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #5d21a4;
$custom-light: #9264c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d21a4",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 267.481,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.19201,
    "h": 298.1
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#5D21A4
secondary
#95C45D
accent
#E93E9B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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