#5D185E#5D185E

#5D185E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.133 H 327.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5D185E
RGBrgb(93, 24, 94)
HSLhsl(299, 59%, 23%)
HSVhsv(299, 74%, 37%)
CMYKcmyk(1.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(22.96, 40.25, -25.85)
CIE-LCHlch(22.96, 47.84, 327.29°)
OKLaboklab(35.33% 0.1117 -0.0716)
OKLCHoklch(35.33% 0.133 327.3)
XYZxyz(6.8611, 3.7891, 10.9575)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D185E #195E18
analogous
#3A185E #5D185E #5E183C
triadic
#5D185E #5E5D18 #185E5D
tetradic
#5D185E #5E3A18 #195E18 #183C5E
square
#5D185E #5E3A18 #195E18 #183C5E
split-complementary
#5D185E #3C5E18 #185E3A
monochromatic
#180618 #2D0C2D #5D185E #8D248F #BD31C0

Accessibility & contrast

On white

11.95
#5D185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5D185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D185E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D185E#FFFFFF#000000##FFFFFF
##5D185E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3160
Deuteranopia (green-blind)
#293A5C
Tritanopia (blue-blind)
#602339
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5d185e;
/* rgb */ color: rgb(93, 24, 94);
/* oklch */ color: oklch(35.3% 0.133 327.3);
Tailwind
colors: {
  custom: {
    50: '#8e5c8c',
    500: '#5d185e',
    950: '#000000',
  },
}
SCSS
$custom: #5d185e;
$custom-light: #8e5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d185e",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 299.143,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35326,
    "c": 0.13273,
    "h": 327.3
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#5D185E
secondary
#3F943D
accent
#E34548
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D185E

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

Preview Lab → · Contrast checker → · Palette generator →

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