#5D236A#5D236A

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

Color values

HEX#5D236A
RGBrgb(93, 35, 106)
HSLhsl(289, 50%, 28%)
HSVhsv(289, 67%, 42%)
CMYKcmyk(12.3%, 67%, 0%, 58.4%)
CIE-LABlab(25.47, 37.74, -29.70)
CIE-LCHlch(25.47, 48.02, 321.80°)
OKLaboklab(37.38% 0.0983 -0.0829)
OKLCHoklch(37.38% 0.129 319.9)
XYZxyz(7.7164, 4.5702, 14.1086)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D236A #306A23
analogous
#39236A #5D236A #6A2354
triadic
#5D236A #6A5D23 #236A5D
tetradic
#5D236A #6A3923 #306A23 #23546A
square
#5D236A #6A3923 #306A23 #23546A
split-complementary
#5D236A #546A23 #236A39
monochromatic
#140817 #35143C #5D236A #853298 #AB46C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D236A#FFFFFF#000000##FFFFFF
##5D236A1.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)
#0F386C
Deuteranopia (green-blind)
#293E68
Tritanopia (blue-blind)
#5D2F43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d236a;
/* rgb */ color: rgb(93, 35, 106);
/* oklch */ color: oklch(37.4% 0.129 319.9);
Tailwind
colors: {
  custom: {
    50: '#8d6295',
    500: '#5d236a',
    950: '#000000',
  },
}
SCSS
$custom: #5d236a;
$custom-light: #8d6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5d236a",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 289.014,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.1286,
    "h": 319.9
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#5D236A
secondary
#5A9D4B
accent
#DA4E68
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D236A

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

Preview Lab → · Contrast checker → · Palette generator →

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