#5B236D#5B236D

#5B236D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.3% C 0.131 H 317.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5B236D
RGBrgb(91, 35, 109)
HSLhsl(285, 51%, 28%)
HSVhsv(285, 68%, 43%)
CMYKcmyk(16.5%, 67.9%, 0%, 57.3%)
CIE-LABlab(25.35, 37.87, -31.85)
CIE-LCHlch(25.35, 49.48, 319.94°)
OKLaboklab(37.29% 0.0956 -0.0893)
OKLCHoklch(37.29% 0.131 317)
XYZxyz(7.6753, 4.5306, 14.9352)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B236D #356D23
analogous
#36236D #5B236D #6D235A
triadic
#5B236D #6D5B23 #236D5B
tetradic
#5B236D #6D3623 #356D23 #235A6D
square
#5B236D #6D3623 #356D23 #235A6D
split-complementary
#5B236D #5A6D23 #236D36
monochromatic
#130717 #34143F #5B236D #82329B #A547C4

Accessibility & contrast

On white

11.02
#5B236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B236D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B236D#FFFFFF#000000##FFFFFF
##5B236D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08396F
Deuteranopia (green-blind)
#243E6B
Tritanopia (blue-blind)
#5A3044
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b236d;
/* rgb */ color: rgb(91, 35, 109);
/* oklch */ color: oklch(37.3% 0.131 317.0);
Tailwind
colors: {
  custom: {
    50: '#8c6297',
    500: '#5b236d',
    950: '#000000',
  },
}
SCSS
$custom: #5b236d;
$custom-light: #8c6297;
$custom-dark: #000000;
JSON
{
  "hex": "#5b236d",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 285.405,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37288,
    "c": 0.13079,
    "h": 317
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#5B236D
secondary
#60A04B
accent
#DB4D6F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5B236D

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

Preview Lab → · Contrast checker → · Palette generator →

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