#5D1B8A#5D1B8A

#5D1B8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.171 H 306.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5D1B8A
RGBrgb(93, 27, 138)
HSLhsl(276, 67%, 32%)
HSVhsv(276, 80%, 54%)
CMYKcmyk(32.6%, 80.4%, 0%, 45.9%)
CIE-LABlab(26.58, 48.44, -48.22)
CIE-LCHlch(26.58, 68.35, 315.13°)
OKLaboklab(38.91% 0.1027 -0.1372)
OKLCHoklch(38.91% 0.171 306.8)
XYZxyz(9.4926, 4.9461, 24.4944)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B8A #488A1B
analogous
#261B8A #5D1B8A #8A1B7F
triadic
#5D1B8A #8A5D1B #1B8A5D
tetradic
#5D1B8A #8A261B #488A1B #1B7F8A
square
#5D1B8A #8A261B #488A1B #1B7F8A
split-complementary
#5D1B8A #7F8A1B #1B8A26
monochromatic
#180724 #3B1157 #5D1B8A #7F25BD #9E45DB

Accessibility & contrast

On white

10.56
#5D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B8A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B8A#FFFFFF#000000##FFFFFF
##5D1B8A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#553852
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1b8a;
/* rgb */ color: rgb(93, 27, 138);
/* oklch */ color: oklch(38.9% 0.171 306.8);
Tailwind
colors: {
  custom: {
    50: '#9060ad',
    500: '#5d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b8a;
$custom-light: #9060ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b8a",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 275.676,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38906,
    "c": 0.17139,
    "h": 306.8
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#5D1B8A
secondary
#75BC45
accent
#EA3E84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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