#5B175D#5B175D

#5B175D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.132 H 326.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#5B175D
RGBrgb(91, 23, 93)
HSLhsl(298, 60%, 23%)
HSVhsv(298, 75%, 36%)
CMYKcmyk(2.2%, 75.3%, 0%, 63.5%)
CIE-LABlab(22.40, 39.96, -26.11)
CIE-LCHlch(22.40, 47.73, 326.84°)
OKLaboklab(34.83% 0.1104 -0.0724)
OKLCHoklch(34.83% 0.132 326.7)
XYZxyz(6.5964, 3.6277, 10.7066)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B175D #195D17
analogous
#38175D #5B175D #5D173C
triadic
#5B175D #5D5B17 #175D5B
tetradic
#5B175D #5D3817 #195D17 #173C5D
square
#5B175D #5D3817 #195D17 #173C5D
split-complementary
#5B175D #3C5D17 #175D38
monochromatic
#180619 #2B0B2C #5B175D #8B238E #BB2FBF

Accessibility & contrast

On white

12.17
#5B175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B175D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B175D#FFFFFF#000000##FFFFFF
##5B175D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08305F
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#5E2238
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b175d;
/* rgb */ color: rgb(91, 23, 93);
/* oklch */ color: oklch(34.8% 0.132 326.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c8b',
    500: '#5b175d',
    950: '#000000',
  },
}
SCSS
$custom: #5b175d;
$custom-light: #8c5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b175d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 298.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.13203,
    "h": 326.7
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#5B175D
secondary
#3F943C
accent
#E34449
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B175D

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

Preview Lab → · Contrast checker → · Palette generator →

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