#5D236F#5D236F

#5D236F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.134 H 317.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5D236F
RGBrgb(93, 35, 111)
HSLhsl(286, 52%, 29%)
HSVhsv(286, 68%, 44%)
CMYKcmyk(16.2%, 68.5%, 0%, 56.5%)
CIE-LABlab(25.79, 38.83, -32.41)
CIE-LCHlch(25.79, 50.58, 320.15°)
OKLaboklab(37.71% 0.0983 -0.0908)
OKLCHoklch(37.71% 0.134 317.2)
XYZxyz(7.9841, 4.6772, 15.5181)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D236F #356F23
analogous
#37236F #5D236F #6F235B
triadic
#5D236F #6F5D23 #236F5D
tetradic
#5D236F #6F3723 #356F23 #235B6F
square
#5D236F #6F3723 #356F23 #235B6F
split-complementary
#5D236F #5B6F23 #236F37
monochromatic
#130717 #361440 #5D236F #84329E #A747C5

Accessibility & contrast

On white

10.85
#5D236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D236F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D236F#FFFFFF#000000##FFFFFF
##5D236F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063971
Deuteranopia (green-blind)
#253F6D
Tritanopia (blue-blind)
#5C3146
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d236f;
/* rgb */ color: rgb(93, 35, 111);
/* oklch */ color: oklch(37.7% 0.134 317.2);
Tailwind
colors: {
  custom: {
    50: '#8e6399',
    500: '#5d236f',
    950: '#000000',
  },
}
SCSS
$custom: #5d236f;
$custom-light: #8e6399;
$custom-dark: #000000;
JSON
{
  "hex": "#5d236f",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 285.789,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37712,
    "c": 0.13381,
    "h": 317.2
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#5D236F
secondary
#60A24C
accent
#DB4C6E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5D236F

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

Preview Lab → · Contrast checker → · Palette generator →

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