#5D1B7C#5D1B7C

#5D1B7C is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.158 H 312.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5D1B7C
RGBrgb(93, 27, 124)
HSLhsl(281, 64%, 30%)
HSVhsv(281, 78%, 49%)
CMYKcmyk(25%, 78.2%, 0%, 51.4%)
CIE-LABlab(25.46, 45.26, -41.24)
CIE-LCHlch(25.46, 61.23, 317.66°)
OKLaboklab(37.77% 0.1058 -0.1167)
OKLCHoklch(37.77% 0.158 312.2)
XYZxyz(8.5436, 4.5665, 19.4962)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B7C #3A7C1B
analogous
#2D1B7C #5D1B7C #7C1B6A
triadic
#5D1B7C #7C5D1B #1B7C5D
tetradic
#5D1B7C #7C2D1B #3A7C1B #1B6A7C
square
#5D1B7C #7C2D1B #3A7C1B #1B6A7C
split-complementary
#5D1B7C #6A7C1B #1B7C2D
monochromatic
#130519 #37104A #5D1B7C #8326AE #A43DD5

Accessibility & contrast

On white

10.98
#5D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B7C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B7C#FFFFFF#000000##FFFFFF
##5D1B7C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0C3E7A
Tritanopia (blue-blind)
#59324A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1b7c;
/* rgb */ color: rgb(93, 27, 124);
/* oklch */ color: oklch(37.8% 0.158 312.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fa3',
    500: '#5d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b7c;
$custom-light: #8f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b7c",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 280.825,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37769,
    "c": 0.15751,
    "h": 312.2
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#5D1B7C
secondary
#66B043
accent
#E74176
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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