#5D1B7F#5D1B7F

#5D1B7F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.160 H 311.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5D1B7F
RGBrgb(93, 27, 127)
HSLhsl(280, 65%, 30%)
HSVhsv(280, 79%, 50%)
CMYKcmyk(26.8%, 78.7%, 0%, 50.2%)
CIE-LABlab(25.69, 45.93, -42.76)
CIE-LCHlch(25.69, 62.76, 317.05°)
OKLaboklab(38.01% 0.1052 -0.1211)
OKLCHoklch(38.01% 0.16 311)
XYZxyz(8.7362, 4.6435, 20.5106)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B7F #3D7F1B
analogous
#2B1B7F #5D1B7F #7F1B6F
triadic
#5D1B7F #7F5D1B #1B7F5D
tetradic
#5D1B7F #7F2B1B #3D7F1B #1B6F7F
square
#5D1B7F #7F2B1B #3D7F1B #1B6F7F
split-complementary
#5D1B7F #6F7F1B #1B7F2B
monochromatic
#13061A #38104D #5D1B7F #8226B1 #A23ED6

Accessibility & contrast

On white

10.89
#5D1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B7F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B7F#FFFFFF#000000##FFFFFF
##5D1B7F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#58334C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1b7f;
/* rgb */ color: rgb(93, 27, 127);
/* oklch */ color: oklch(38.0% 0.160 311.0);
Tailwind
colors: {
  custom: {
    50: '#8f5fa5',
    500: '#5d1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b7f;
$custom-light: #8f5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b7f",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 279.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38006,
    "c": 0.16047,
    "h": 311
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#5D1B7F
secondary
#69B343
accent
#E84079
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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