#5D1A97#5D1A97

#5D1A97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.185 H 302.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5D1A97
RGBrgb(93, 26, 151)
HSLhsl(272, 71%, 35%)
HSVhsv(272, 83%, 59%)
CMYKcmyk(38.4%, 82.8%, 0%, 40.8%)
CIE-LABlab(27.57, 51.85, -54.64)
CIE-LCHlch(27.57, 75.33, 313.50°)
OKLaboklab(39.95% 0.0998 -0.156)
OKLCHoklch(39.95% 0.185 302.6)
XYZxyz(10.4682, 5.3003, 29.7437)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A97 #54971A
analogous
#1F1A97 #5D1A97 #971A93
triadic
#5D1A97 #975D1A #1A975D
tetradic
#5D1A97 #971F1A #54971A #1A9397
square
#5D1A97 #971F1A #54971A #1A9397
split-complementary
#5D1A97 #93971A #1A971F
monochromatic
#1D082F #3D1163 #5D1A97 #7D23CB #9B4BE0

Accessibility & contrast

On white

10.19
#5D1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A97
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A97#FFFFFF#000000##FFFFFF
##5D1A971.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#513D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1a97;
/* rgb */ color: rgb(93, 26, 151);
/* oklch */ color: oklch(39.9% 0.185 302.6);
Tailwind
colors: {
  custom: {
    50: '#9160b7',
    500: '#5d1a97',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a97;
$custom-light: #9160b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a97",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 272.16,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39945,
    "c": 0.18522,
    "h": 302.6
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#5D1A97
secondary
#82C24B
accent
#ED3A8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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