#5D1D93#5D1D93

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

Color values

HEX#5D1D93
RGBrgb(93, 29, 147)
HSLhsl(273, 67%, 35%)
HSVhsv(273, 80%, 58%)
CMYKcmyk(36.7%, 80.3%, 0%, 42.4%)
CIE-LABlab(27.61, 49.79, -52.13)
CIE-LCHlch(27.61, 72.09, 313.69°)
OKLaboklab(39.86% 0.0986 -0.1487)
OKLCHoklch(39.86% 0.178 303.6)
XYZxyz(10.2188, 5.3125, 28.0852)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D93 #53931D
analogous
#221D93 #5D1D93 #931D8E
triadic
#5D1D93 #935D1D #1D935D
tetradic
#5D1D93 #93221D #53931D #1D8E93
square
#5D1D93 #93221D #53931D #1D8E93
split-complementary
#5D1D93 #8E931D #1D9322
monochromatic
#1C092D #3D1360 #5D1D93 #7D27C6 #9B4EDC

Accessibility & contrast

On white

10.18
#5D1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1D93
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D93#FFFFFF#000000##FFFFFF
##5D1D931.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#523C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1d93;
/* rgb */ color: rgb(93, 29, 147);
/* oklch */ color: oklch(39.9% 0.178 303.6);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5d1d93',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d93;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d93",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 272.542,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3986,
    "c": 0.17842,
    "h": 303.6
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#5D1D93
secondary
#81BF4D
accent
#EA3E8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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