#5D177B#5D177B

#5D177B is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 313.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5D177B
RGBrgb(93, 23, 123)
HSLhsl(282, 68%, 29%)
HSVhsv(282, 81%, 48%)
CMYKcmyk(24.4%, 81.3%, 0%, 51.8%)
CIE-LABlab(24.86, 46.55, -41.58)
CIE-LCHlch(24.86, 62.42, 318.23°)
OKLaboklab(37.32% 0.1097 -0.1176)
OKLCHoklch(37.32% 0.161 313)
XYZxyz(8.3951, 4.3703, 19.1364)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D177B #357B17
analogous
#2B177B #5D177B #7B1767
triadic
#5D177B #7B5D17 #177B5D
tetradic
#5D177B #7B2B17 #357B17 #17677B
square
#5D177B #7B2B17 #357B17 #17677B
split-complementary
#5D177B #677B17 #177B2B
monochromatic
#13051A #360D47 #5D177B #8421AF #A733D9

Accessibility & contrast

On white

11.21
#5D177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D177B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D177B#FFFFFF#000000##FFFFFF
##5D177B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#083C79
Tritanopia (blue-blind)
#5A2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d177b;
/* rgb */ color: rgb(93, 23, 123);
/* oklch */ color: oklch(37.3% 0.161 313.0);
Tailwind
colors: {
  custom: {
    50: '#8f5da2',
    500: '#5d177b',
    950: '#000000',
  },
}
SCSS
$custom: #5d177b;
$custom-light: #8f5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d177b",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 282,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3732,
    "c": 0.16085,
    "h": 313
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#5D177B
secondary
#60B03E
accent
#EB3C71
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D177B

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

Preview Lab → · Contrast checker → · Palette generator →

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