#5D236E#5D236E

#5D236E is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.6% C 0.133 H 317.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5D236E
RGBrgb(93, 35, 110)
HSLhsl(286, 52%, 28%)
HSVhsv(286, 68%, 43%)
CMYKcmyk(15.5%, 68.2%, 0%, 56.9%)
CIE-LABlab(25.73, 38.61, -31.87)
CIE-LCHlch(25.73, 50.06, 320.46°)
OKLaboklab(37.64% 0.0983 -0.0893)
OKLCHoklch(37.64% 0.133 317.7)
XYZxyz(7.9293, 4.6553, 15.2297)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D236E #346E23
analogous
#37236E #5D236E #6E2359
triadic
#5D236E #6E5D23 #236E5D
tetradic
#5D236E #6E3723 #346E23 #23596E
square
#5D236E #6E3723 #346E23 #23596E
split-complementary
#5D236E #596E23 #236E37
monochromatic
#140717 #361440 #5D236E #84329C #A847C4

Accessibility & contrast

On white

10.88
#5D236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D236E
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D236E#FFFFFF#000000##FFFFFF
##5D236E1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083970
Deuteranopia (green-blind)
#263F6C
Tritanopia (blue-blind)
#5D3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d236e;
/* rgb */ color: rgb(93, 35, 110);
/* oklch */ color: oklch(37.6% 0.133 317.7);
Tailwind
colors: {
  custom: {
    50: '#8d6398',
    500: '#5d236e',
    950: '#000000',
  },
}
SCSS
$custom: #5d236e;
$custom-light: #8d6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5d236e",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 286.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37644,
    "c": 0.13276,
    "h": 317.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#5D236E
secondary
#5FA14C
accent
#DB4D6D
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D236E

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

Preview Lab → · Contrast checker → · Palette generator →

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