#5D1B97#5D1B97

#5D1B97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.184 H 302.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5D1B97
RGBrgb(93, 27, 151)
HSLhsl(272, 70%, 35%)
HSVhsv(272, 82%, 59%)
CMYKcmyk(38.4%, 82.1%, 0%, 40.8%)
CIE-LABlab(27.70, 51.49, -54.44)
CIE-LCHlch(27.70, 74.94, 313.41°)
OKLaboklab(40.03% 0.099 -0.1555)
OKLCHoklch(40.03% 0.184 302.5)
XYZxyz(10.4907, 5.3454, 29.7512)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B97 #55971B
analogous
#1F1B97 #5D1B97 #971B93
triadic
#5D1B97 #975D1B #1B975D
tetradic
#5D1B97 #971F1B #55971B #1B9397
square
#5D1B97 #971F1B #55971B #1B9397
split-complementary
#5D1B97 #93971B #1B971F
monochromatic
#1D082F #3D1263 #5D1B97 #7D24CB #9B4DDF

Accessibility & contrast

On white

10.15
#5D1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B97
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B97#FFFFFF#000000##FFFFFF
##5D1B971.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.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: #5d1b97;
/* rgb */ color: rgb(93, 27, 151);
/* oklch */ color: oklch(40.0% 0.184 302.5);
Tailwind
colors: {
  custom: {
    50: '#9161b7',
    500: '#5d1b97',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b97;
$custom-light: #9161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b97",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 271.935,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.18433,
    "h": 302.5
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#5D1B97
secondary
#83C14C
accent
#EC3B8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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