#5D177F#5D177F

#5D177F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 311.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5D177F
RGBrgb(93, 23, 127)
HSLhsl(280, 69%, 29%)
HSVhsv(280, 82%, 50%)
CMYKcmyk(26.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(25.18, 47.43, -43.60)
CIE-LCHlch(25.18, 64.42, 317.41°)
OKLaboklab(37.64% 0.1088 -0.1236)
OKLCHoklch(37.64% 0.165 311.4)
XYZxyz(8.6506, 4.4725, 20.4821)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D177F #397F17
analogous
#29177F #5D177F #7F176D
triadic
#5D177F #7F5D17 #177F5D
tetradic
#5D177F #7F2917 #397F17 #176D7F
square
#5D177F #7F2917 #397F17 #176D7F
split-complementary
#5D177F #6D7F17 #177F29
monochromatic
#13051A #370E4B #5D177F #8320B3 #A536DB

Accessibility & contrast

On white

11.09
#5D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D177F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D177F#FFFFFF#000000##FFFFFF
##5D177F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d177f;
/* rgb */ color: rgb(93, 23, 127);
/* oklch */ color: oklch(37.6% 0.165 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ea5',
    500: '#5d177f',
    950: '#000000',
  },
}
SCSS
$custom: #5d177f;
$custom-light: #8f5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d177f",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 280.385,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37641,
    "c": 0.16466,
    "h": 311.4
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

primary
#5D177F
secondary
#65B43E
accent
#EC3C75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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