#5B175F#5B175F

#5B175F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.134 H 325.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#5B175F
RGBrgb(91, 23, 95)
HSLhsl(297, 61%, 23%)
HSVhsv(297, 76%, 37%)
CMYKcmyk(4.2%, 75.8%, 0%, 62.7%)
CIE-LABlab(22.53, 40.34, -27.23)
CIE-LCHlch(22.53, 48.67, 325.98°)
OKLaboklab(34.96% 0.1104 -0.0757)
OKLCHoklch(34.96% 0.134 325.6)
XYZxyz(6.6862, 3.6636, 11.1792)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B175F #1B5F17
analogous
#37175F #5B175F #5F173F
triadic
#5B175F #5F5B17 #175F5B
tetradic
#5B175F #5F3717 #1B5F17 #173F5F
square
#5B175F #5F3717 #1B5F17 #173F5F
split-complementary
#5B175F #3F5F17 #175F37
monochromatic
#180619 #2C0B2E #5B175F #8A2390 #B92FC2

Accessibility & contrast

On white

12.12
#5B175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B175F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B175F#FFFFFF#000000##FFFFFF
##5B175F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#26395D
Tritanopia (blue-blind)
#5D2339
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b175f;
/* rgb */ color: rgb(91, 23, 95);
/* oklch */ color: oklch(35.0% 0.134 325.6);
Tailwind
colors: {
  custom: {
    50: '#8c5c8d',
    500: '#5b175f',
    950: '#000000',
  },
}
SCSS
$custom: #5b175f;
$custom-light: #8c5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b175f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 296.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34964,
    "c": 0.13383,
    "h": 325.6
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#5B175F
secondary
#41963C
accent
#E4444D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B175F

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

Preview Lab → · Contrast checker → · Palette generator →

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