#5C236D#5C236D

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

Color values

HEX#5C236D
RGBrgb(92, 35, 109)
HSLhsl(286, 51%, 28%)
HSVhsv(286, 68%, 43%)
CMYKcmyk(15.6%, 67.9%, 0%, 57.3%)
CIE-LABlab(25.51, 38.13, -31.59)
CIE-LCHlch(25.51, 49.51, 320.36°)
OKLaboklab(37.43% 0.097 -0.0885)
OKLCHoklch(37.43% 0.131 317.6)
XYZxyz(7.7746, 4.5818, 14.9399)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C236D #346D23
analogous
#37236D #5C236D #6D2359
triadic
#5C236D #6D5C23 #236D5C
tetradic
#5C236D #6D3723 #346D23 #23596D
square
#5C236D #6D3723 #346D23 #23596D
split-complementary
#5C236D #596D23 #236D37
monochromatic
#140717 #35143F #5C236D #83329B #A747C4

Accessibility & contrast

On white

10.96
#5C236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C236D
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C236D#FFFFFF#000000##FFFFFF
##5C236D1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09396F
Deuteranopia (green-blind)
#253E6B
Tritanopia (blue-blind)
#5B3044
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c236d;
/* rgb */ color: rgb(92, 35, 109);
/* oklch */ color: oklch(37.4% 0.131 317.6);
Tailwind
colors: {
  custom: {
    50: '#8d6297',
    500: '#5c236d',
    950: '#000000',
  },
}
SCSS
$custom: #5c236d;
$custom-light: #8d6297;
$custom-dark: #000000;
JSON
{
  "hex": "#5c236d",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 286.216,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37432,
    "c": 0.13125,
    "h": 317.6
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#5C236D
secondary
#5FA04B
accent
#DB4D6E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5C236D

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

Preview Lab → · Contrast checker → · Palette generator →

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