#5C236B#5C236B

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

Color values

HEX#5C236B
RGBrgb(92, 35, 107)
HSLhsl(288, 51%, 28%)
HSVhsv(288, 67%, 42%)
CMYKcmyk(14%, 67.3%, 0%, 58%)
CIE-LABlab(25.38, 37.69, -30.50)
CIE-LCHlch(25.38, 48.49, 321.02°)
OKLaboklab(37.3% 0.097 -0.0853)
OKLCHoklch(37.3% 0.129 318.7)
XYZxyz(7.6682, 4.5392, 14.3793)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C236B #326B23
analogous
#38236B #5C236B #6B2356
triadic
#5C236B #6B5C23 #236B5C
tetradic
#5C236B #6B3823 #326B23 #23566B
square
#5C236B #6B3823 #326B23 #23566B
split-complementary
#5C236B #566B23 #236B38
monochromatic
#140817 #34143D #5C236B #843299 #A946C2

Accessibility & contrast

On white

11.01
#5C236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C236B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C236B#FFFFFF#000000##FFFFFF
##5C236B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386D
Deuteranopia (green-blind)
#273E69
Tritanopia (blue-blind)
#5C2F43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c236b;
/* rgb */ color: rgb(92, 35, 107);
/* oklch */ color: oklch(37.3% 0.129 318.7);
Tailwind
colors: {
  custom: {
    50: '#8d6296',
    500: '#5c236b',
    950: '#000000',
  },
}
SCSS
$custom: #5c236b;
$custom-light: #8d6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5c236b",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 287.5,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37297,
    "c": 0.12915,
    "h": 318.7
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#5C236B
secondary
#5D9E4B
accent
#DA4E6B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5C236B

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

Preview Lab → · Contrast checker → · Palette generator →

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