#5D1D99#5D1D99

#5D1D99 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.184 H 301.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5D1D99
RGBrgb(93, 29, 153)
HSLhsl(271, 68%, 36%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(39.2%, 81%, 0%, 40%)
CIE-LABlab(28.13, 51.23, -54.96)
CIE-LCHlch(28.13, 75.13, 312.99°)
OKLaboklab(40.39% 0.0969 -0.157)
OKLCHoklch(40.39% 0.184 301.7)
XYZxyz(10.7019, 5.5057, 30.6297)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D99 #59991D
analogous
#1F1D99 #5D1D99 #991D97
triadic
#5D1D99 #995D1D #1D995D
tetradic
#5D1D99 #991F1D #59991D #1D9799
square
#5D1D99 #991F1D #59991D #1D9799
split-complementary
#5D1D99 #97991D #1D991F
monochromatic
#1E0932 #3E1366 #5D1D99 #7C27CC #9A52DE

Accessibility & contrast

On white

9.99
#5D1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D99
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D99#FFFFFF#000000##FFFFFF
##5D1D991.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#503F5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1d99;
/* rgb */ color: rgb(93, 29, 153);
/* oklch */ color: oklch(40.4% 0.184 301.7);
Tailwind
colors: {
  custom: {
    50: '#9162b8',
    500: '#5d1d99',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d99;
$custom-light: #9162b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d99",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 270.968,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.18449,
    "h": 301.7
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#5D1D99
secondary
#87C151
accent
#EB3D91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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