#5D177E#5D177E

#5D177E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.164 H 311.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5D177E
RGBrgb(93, 23, 126)
HSLhsl(281, 69%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(26.2%, 81.7%, 0%, 50.6%)
CIE-LABlab(25.10, 47.21, -43.10)
CIE-LCHlch(25.10, 63.92, 317.60°)
OKLaboklab(37.56% 0.109 -0.1221)
OKLCHoklch(37.56% 0.164 311.8)
XYZxyz(8.5858, 4.4465, 20.1406)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D177E #387E17
analogous
#2A177E #5D177E #7E176C
triadic
#5D177E #7E5D17 #177E5D
tetradic
#5D177E #7E2A17 #387E17 #176C7E
square
#5D177E #7E2A17 #387E17 #176C7E
split-complementary
#5D177E #6C7E17 #177E2A
monochromatic
#13051A #370E4A #5D177E #8320B2 #A535DA

Accessibility & contrast

On white

11.12
#5D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D177E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D177E#FFFFFF#000000##FFFFFF
##5D177E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#59314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d177e;
/* rgb */ color: rgb(93, 23, 126);
/* oklch */ color: oklch(37.6% 0.164 311.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea4',
    500: '#5d177e',
    950: '#000000',
  },
}
SCSS
$custom: #5d177e;
$custom-light: #8f5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d177e",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 280.777,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37561,
    "c": 0.16371,
    "h": 311.8
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#5D177E
secondary
#63B33E
accent
#EC3C74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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