#5B1575#5B1575

#5B1575 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.157 H 314.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5B1575
RGBrgb(91, 21, 117)
HSLhsl(284, 70%, 27%)
HSVhsv(284, 82%, 46%)
CMYKcmyk(22.2%, 82.1%, 0%, 54.1%)
CIE-LABlab(23.82, 45.58, -39.45)
CIE-LCHlch(23.82, 60.28, 319.12°)
OKLaboklab(36.38% 0.1099 -0.1115)
OKLCHoklch(36.38% 0.157 314.6)
XYZxyz(7.7929, 4.0451, 17.1965)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1575 #2F7515
analogous
#2B1575 #5B1575 #75155F
triadic
#5B1575 #755B15 #15755B
tetradic
#5B1575 #752B15 #2F7515 #155F75
square
#5B1575 #752B15 #2F7515 #155F75
split-complementary
#5B1575 #5F7515 #15752B
monochromatic
#14051A #330C41 #5B1575 #831EA9 #AA2BD9

Accessibility & contrast

On white

11.61
#5B1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1575
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1575#FFFFFF#000000##FFFFFF
##5B15751.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#0E3A73
Tritanopia (blue-blind)
#592C45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1575;
/* rgb */ color: rgb(91, 21, 117);
/* oklch */ color: oklch(36.4% 0.157 314.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c9d',
    500: '#5b1575',
    950: '#000000',
  },
}
SCSS
$custom: #5b1575;
$custom-light: #8d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1575",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 283.75,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36377,
    "c": 0.15652,
    "h": 314.6
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#5B1575
secondary
#59AB3B
accent
#EC3B6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1575

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

Preview Lab → · Contrast checker → · Palette generator →

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