#5B2372#5B2372

#5B2372 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.136 H 314.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5B2372
RGBrgb(91, 35, 114)
HSLhsl(283, 53%, 29%)
HSVhsv(283, 69%, 45%)
CMYKcmyk(20.2%, 69.3%, 0%, 55.3%)
CIE-LABlab(25.69, 39.00, -34.52)
CIE-LCHlch(25.69, 52.08, 318.48°)
OKLaboklab(37.64% 0.0954 -0.0971)
OKLCHoklch(37.64% 0.136 314.5)
XYZxyz(7.9522, 4.6414, 16.3933)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2372 #3A7223
analogous
#342372 #5B2372 #722362
triadic
#5B2372 #725B23 #23725B
tetradic
#5B2372 #723423 #3A7223 #236272
square
#5B2372 #723423 #3A7223 #236272
split-complementary
#5B2372 #627223 #237234
monochromatic
#130717 #361543 #5B2372 #8031A1 #A248C7

Accessibility & contrast

On white

10.89
#5B2372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B2372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2372
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2372#FFFFFF#000000##FFFFFF
##5B23721.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#203E70
Tritanopia (blue-blind)
#593247
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2372;
/* rgb */ color: rgb(91, 35, 114);
/* oklch */ color: oklch(37.6% 0.136 314.5);
Tailwind
colors: {
  custom: {
    50: '#8c629b',
    500: '#5b2372',
    950: '#000000',
  },
}
SCSS
$custom: #5b2372;
$custom-light: #8c629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2372",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 282.532,
    "s": 53.02,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.13611,
    "h": 314.5
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#5B2372
secondary
#66A54C
accent
#DC4B76
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2372

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

Preview Lab → · Contrast checker → · Palette generator →

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