#5B175C#5B175C

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

Color values

HEX#5B175C
RGBrgb(91, 23, 92)
HSLhsl(299, 60%, 23%)
HSVhsv(299, 75%, 36%)
CMYKcmyk(1.1%, 75%, 0%, 63.9%)
CIE-LABlab(22.34, 39.77, -25.54)
CIE-LCHlch(22.34, 47.26, 327.29°)
OKLaboklab(34.77% 0.1104 -0.0708)
OKLCHoklch(34.77% 0.131 327.3)
XYZxyz(6.5524, 3.6101, 10.4748)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B175C #185C17
analogous
#38175C #5B175C #5C173B
triadic
#5B175C #5C5B17 #175C5B
tetradic
#5B175C #5C3817 #185C17 #173B5C
square
#5B175C #5C3817 #185C17 #173B5C
split-complementary
#5B175C #3B5C17 #175C38
monochromatic
#180618 #2B0B2B #5B175C #8B238D #BC2FBE

Accessibility & contrast

On white

12.20
#5B175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B175C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B175C#FFFFFF#000000##FFFFFF
##5B175C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#5E2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b175c;
/* rgb */ color: rgb(91, 23, 92);
/* oklch */ color: oklch(34.8% 0.131 327.3);
Tailwind
colors: {
  custom: {
    50: '#8c5c8a',
    500: '#5b175c',
    950: '#000000',
  },
}
SCSS
$custom: #5b175c;
$custom-light: #8c5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b175c",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 299.13,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34768,
    "c": 0.13114,
    "h": 327.3
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#5B175C
secondary
#3D933C
accent
#E34547
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B175C

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

Preview Lab → · Contrast checker → · Palette generator →

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