#5D236B#5D236B

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

Color values

HEX#5D236B
RGBrgb(93, 35, 107)
HSLhsl(288, 51%, 28%)
HSVhsv(288, 67%, 42%)
CMYKcmyk(13.1%, 67.3%, 0%, 58%)
CIE-LABlab(25.54, 37.95, -30.25)
CIE-LCHlch(25.54, 48.53, 321.45°)
OKLaboklab(37.44% 0.0983 -0.0845)
OKLCHoklch(37.44% 0.13 319.3)
XYZxyz(7.7687, 4.5911, 14.3840)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D236B #316B23
analogous
#39236B #5D236B #6B2355
triadic
#5D236B #6B5D23 #236B5D
tetradic
#5D236B #6B3923 #316B23 #23556B
square
#5D236B #6B3923 #316B23 #23556B
split-complementary
#5D236B #556B23 #236B39
monochromatic
#140817 #35143D #5D236B #853299 #AA46C2

Accessibility & contrast

On white

10.95
#5D236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D236B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D236B#FFFFFF#000000##FFFFFF
##5D236B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E396D
Deuteranopia (green-blind)
#283E69
Tritanopia (blue-blind)
#5D2F43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d236b;
/* rgb */ color: rgb(93, 35, 107);
/* oklch */ color: oklch(37.4% 0.130 319.3);
Tailwind
colors: {
  custom: {
    50: '#8d6296',
    500: '#5d236b',
    950: '#000000',
  },
}
SCSS
$custom: #5d236b;
$custom-light: #8d6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5d236b",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 288.333,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.12965,
    "h": 319.3
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#5D236B
secondary
#5C9E4B
accent
#DA4E69
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D236B

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

Preview Lab → · Contrast checker → · Palette generator →

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