#5B236F#5B236F

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

Color values

HEX#5B236F
RGBrgb(91, 35, 111)
HSLhsl(284, 52%, 29%)
HSVhsv(284, 68%, 44%)
CMYKcmyk(18%, 68.5%, 0%, 56.5%)
CIE-LABlab(25.49, 38.32, -32.92)
CIE-LCHlch(25.49, 50.52, 319.33°)
OKLaboklab(37.43% 0.0955 -0.0924)
OKLCHoklch(37.43% 0.133 316)
XYZxyz(7.7842, 4.5742, 15.5087)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B236F #376F23
analogous
#35236F #5B236F #6F235D
triadic
#5B236F #6F5B23 #236F5B
tetradic
#5B236F #6F3523 #376F23 #235D6F
square
#5B236F #6F3523 #376F23 #235D6F
split-complementary
#5B236F #5D6F23 #236F35
monochromatic
#130717 #351440 #5B236F #81329E #A447C5

Accessibility & contrast

On white

10.97
#5B236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B236F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B236F#FFFFFF#000000##FFFFFF
##5B236F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033971
Deuteranopia (green-blind)
#233E6D
Tritanopia (blue-blind)
#5A3146
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b236f;
/* rgb */ color: rgb(91, 35, 111);
/* oklch */ color: oklch(37.4% 0.133 316.0);
Tailwind
colors: {
  custom: {
    50: '#8c6299',
    500: '#5b236f',
    950: '#000000',
  },
}
SCSS
$custom: #5b236f;
$custom-light: #8c6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5b236f",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 284.211,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37425,
    "c": 0.13291,
    "h": 316
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#5B236F
secondary
#62A24C
accent
#DB4C72
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B236F

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

Preview Lab → · Contrast checker → · Palette generator →

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