#5B2571#5B2571

#5B2571 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.132 H 314.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5B2571
RGBrgb(91, 37, 113)
HSLhsl(283, 51%, 29%)
HSVhsv(283, 67%, 44%)
CMYKcmyk(19.5%, 67.3%, 0%, 55.7%)
CIE-LABlab(25.98, 37.77, -33.41)
CIE-LCHlch(25.98, 50.43, 318.50°)
OKLaboklab(37.82% 0.0929 -0.0939)
OKLCHoklch(37.82% 0.132 314.7)
XYZxyz(7.9561, 4.7398, 16.1154)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2571 #3B7125
analogous
#352571 #5B2571 #712561
triadic
#5B2571 #715B25 #25715B
tetradic
#5B2571 #713525 #3B7125 #256171
square
#5B2571 #713525 #3B7125 #256171
split-complementary
#5B2571 #617125 #257135
monochromatic
#130817 #361643 #5B2571 #80349F #A24CC4

Accessibility & contrast

On white

10.78
#5B2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2571
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2571#FFFFFF#000000##FFFFFF
##5B25711.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A73
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#593347
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2571;
/* rgb */ color: rgb(91, 37, 113);
/* oklch */ color: oklch(37.8% 0.132 314.7);
Tailwind
colors: {
  custom: {
    50: '#8c649a',
    500: '#5b2571',
    950: '#000000',
  },
}
SCSS
$custom: #5b2571;
$custom-light: #8c649a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2571",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 282.632,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37825,
    "c": 0.13206,
    "h": 314.7
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#5B2571
secondary
#67A44E
accent
#DA4E76
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2571

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

Preview Lab → · Contrast checker → · Palette generator →

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