#5D1D7F#5D1D7F

#5D1D7F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.158 H 310.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5D1D7F
RGBrgb(93, 29, 127)
HSLhsl(279, 63%, 31%)
HSVhsv(279, 77%, 50%)
CMYKcmyk(26.8%, 77.2%, 0%, 50.2%)
CIE-LABlab(25.98, 45.12, -42.31)
CIE-LCHlch(25.98, 61.85, 316.85°)
OKLaboklab(38.21% 0.1033 -0.1198)
OKLCHoklch(38.21% 0.158 310.8)
XYZxyz(8.7836, 4.7384, 20.5265)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D7F #3F7F1D
analogous
#2C1D7F #5D1D7F #7F1D70
triadic
#5D1D7F #7F5D1D #1D7F5D
tetradic
#5D1D7F #7F2C1D #3F7F1D #1D707F
square
#5D1D7F #7F2C1D #3F7F1D #1D707F
split-complementary
#5D1D7F #707F1D #1D7F2C
monochromatic
#14061B #39124D #5D1D7F #8128B1 #A142D4

Accessibility & contrast

On white

10.78
#5D1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D7F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D7F#FFFFFF#000000##FFFFFF
##5D1D7F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#58344D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1d7f;
/* rgb */ color: rgb(93, 29, 127);
/* oklch */ color: oklch(38.2% 0.158 310.8);
Tailwind
colors: {
  custom: {
    50: '#8f60a5',
    500: '#5d1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d7f;
$custom-light: #8f60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d7f",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 279.184,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38205,
    "c": 0.1582,
    "h": 310.8
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#5D1D7F
secondary
#6BB245
accent
#E6427B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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