#5B2D71#5B2D71

#5B2D71 is a dark, moderate purple. Relative luminance 0.053; OKLCH L 39.0% C 0.119 H 313.4°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5B2D71
RGBrgb(91, 45, 113)
HSLhsl(281, 43%, 31%)
HSVhsv(281, 60%, 44%)
CMYKcmyk(19.5%, 60.2%, 0%, 55.7%)
CIE-LABlab(27.55, 33.49, -30.90)
CIE-LCHlch(27.55, 45.57, 317.31°)
OKLaboklab(38.97% 0.082 -0.0866)
OKLCHoklch(38.97% 0.119 313.4)
XYZxyz(8.2329, 5.2934, 16.2076)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D71 #43712D
analogous
#392D71 #5B2D71 #712D65
triadic
#5B2D71 #715B2D #2D715B
tetradic
#5B2D71 #71392D #43712D #2D6571
square
#5B2D71 #71392D #43712D #2D6571
split-complementary
#5B2D71 #65712D #2D7139
monochromatic
#150A19 #381C45 #5B2D71 #7E3E9D #9E5BBE

Accessibility & contrast

On white

10.20
#5B2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D71
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D71#FFFFFF#000000##FFFFFF
##5B2D711.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F73
Deuteranopia (green-blind)
#2A426F
Tritanopia (blue-blind)
#59394A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2d71;
/* rgb */ color: rgb(91, 45, 113);
/* oklch */ color: oklch(39.0% 0.119 313.4);
Tailwind
colors: {
  custom: {
    50: '#8b689a',
    500: '#5b2d71',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d71;
$custom-light: #8b689a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d71",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 280.588,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38969,
    "c": 0.11921,
    "h": 313.4
  },
  "luminance": 0.05293
}

Semantic roles & 50–950 ramp

primary
#5B2D71
secondary
#70A357
accent
#D3557E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5B2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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