#5D1773#5D1773

#5D1773 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.153 H 316.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5D1773
RGBrgb(93, 23, 115)
HSLhsl(286, 67%, 27%)
HSVhsv(286, 80%, 45%)
CMYKcmyk(19.1%, 80%, 0%, 54.9%)
CIE-LABlab(24.25, 44.84, -37.46)
CIE-LCHlch(24.25, 58.43, 320.13°)
OKLaboklab(36.7% 0.1112 -0.1055)
OKLCHoklch(36.7% 0.153 316.5)
XYZxyz(7.9146, 4.1781, 16.6059)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1773 #2D7317
analogous
#2F1773 #5D1773 #73175B
triadic
#5D1773 #735D17 #17735D
tetradic
#5D1773 #732F17 #2D7317 #175B73
square
#5D1773 #732F17 #2D7317 #175B73
split-complementary
#5D1773 #5B7317 #17732F
monochromatic
#15051A #340D40 #5D1773 #8621A6 #AE2FD5

Accessibility & contrast

On white

11.44
#5D1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1773
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1773#FFFFFF#000000##FFFFFF
##5D17731.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#173C71
Tritanopia (blue-blind)
#5C2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1773;
/* rgb */ color: rgb(93, 23, 115);
/* oklch */ color: oklch(36.7% 0.153 316.5);
Tailwind
colors: {
  custom: {
    50: '#8e5d9c',
    500: '#5d1773',
    950: '#000000',
  },
}
SCSS
$custom: #5d1773;
$custom-light: #8e5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1773",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 285.652,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.367,
    "c": 0.15328,
    "h": 316.5
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#5D1773
secondary
#57A93D
accent
#EA3E67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1773

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

Preview Lab → · Contrast checker → · Palette generator →

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