#5B236E#5B236E

#5B236E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.132 H 316.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5B236E
RGBrgb(91, 35, 110)
HSLhsl(285, 52%, 28%)
HSVhsv(285, 68%, 43%)
CMYKcmyk(17.3%, 68.2%, 0%, 56.9%)
CIE-LABlab(25.42, 38.09, -32.38)
CIE-LCHlch(25.42, 50.00, 319.63°)
OKLaboklab(37.36% 0.0956 -0.0908)
OKLCHoklch(37.36% 0.132 316.5)
XYZxyz(7.7295, 4.5523, 15.2204)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B236E #366E23
analogous
#35236E #5B236E #6E235B
triadic
#5B236E #6E5B23 #236E5B
tetradic
#5B236E #6E3523 #366E23 #235B6E
square
#5B236E #6E3523 #366E23 #235B6E
split-complementary
#5B236E #5B6E23 #236E35
monochromatic
#130717 #351440 #5B236E #81329C #A547C4

Accessibility & contrast

On white

10.99
#5B236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B236E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B236E#FFFFFF#000000##FFFFFF
##5B236E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063970
Deuteranopia (green-blind)
#243E6C
Tritanopia (blue-blind)
#5A3145
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b236e;
/* rgb */ color: rgb(91, 35, 110);
/* oklch */ color: oklch(37.4% 0.132 316.5);
Tailwind
colors: {
  custom: {
    50: '#8c6298',
    500: '#5b236e',
    950: '#000000',
  },
}
SCSS
$custom: #5b236e;
$custom-light: #8c6298;
$custom-dark: #000000;
JSON
{
  "hex": "#5b236e",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 284.8,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.13185,
    "h": 316.5
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#5B236E
secondary
#61A14C
accent
#DB4D71
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B236E

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

Preview Lab → · Contrast checker → · Palette generator →

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