#5D1D91#5D1D91

#5D1D91 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.176 H 304.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5D1D91
RGBrgb(93, 29, 145)
HSLhsl(273, 67%, 34%)
HSVhsv(273, 80%, 57%)
CMYKcmyk(35.9%, 80%, 0%, 43.1%)
CIE-LABlab(27.44, 49.31, -51.17)
CIE-LCHlch(27.44, 71.07, 313.94°)
OKLaboklab(39.69% 0.0992 -0.1459)
OKLCHoklch(39.69% 0.176 304.2)
XYZxyz(10.0632, 5.2503, 27.2658)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D91 #51911D
analogous
#231D91 #5D1D91 #911D8B
triadic
#5D1D91 #915D1D #1D915D
tetradic
#5D1D91 #91231D #51911D #1D8B91
square
#5D1D91 #91231D #51911D #1D8B91
split-complementary
#5D1D91 #8B911D #1D9123
monochromatic
#1C092B #3C135E #5D1D91 #7E27C4 #9C4DDB

Accessibility & contrast

On white

10.24
#5D1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D1D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D91
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D91#FFFFFF#000000##FFFFFF
##5D1D911.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#533C57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1d91;
/* rgb */ color: rgb(93, 29, 145);
/* oklch */ color: oklch(39.7% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#9061b2',
    500: '#5d1d91',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d91;
$custom-light: #9061b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d91",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 273.103,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39687,
    "c": 0.17639,
    "h": 304.2
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#5D1D91
secondary
#7FBE4C
accent
#EA3E8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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