#5D187D#5D187D

#5D187D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.162 H 312.1°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5D187D
RGBrgb(93, 24, 125)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 49%)
CMYKcmyk(25.6%, 80.8%, 0%, 51%)
CIE-LABlab(25.14, 46.63, -42.39)
CIE-LCHlch(25.14, 63.02, 317.72°)
OKLaboklab(37.57% 0.1084 -0.12)
OKLCHoklch(37.57% 0.162 312.1)
XYZxyz(8.5418, 4.4613, 19.8092)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D187D #387D18
analogous
#2B187D #5D187D #7D186B
triadic
#5D187D #7D5D18 #187D5D
tetradic
#5D187D #7D2B18 #387D18 #186B7D
square
#5D187D #7D2B18 #387D18 #186B7D
split-complementary
#5D187D #6B7D18 #187D2B
monochromatic
#13051A #370E4A #5D187D #8322B0 #A537D9

Accessibility & contrast

On white

11.10
#5D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D187D
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D187D#FFFFFF#000000##FFFFFF
##5D187D1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#043D7B
Tritanopia (blue-blind)
#59314A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d187d;
/* rgb */ color: rgb(93, 24, 125);
/* oklch */ color: oklch(37.6% 0.162 312.1);
Tailwind
colors: {
  custom: {
    50: '#8f5ea3',
    500: '#5d187d',
    950: '#000000',
  },
}
SCSS
$custom: #5d187d;
$custom-light: #8f5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d187d",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 280.99,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37568,
    "c": 0.16174,
    "h": 312.1
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#5D187D
secondary
#63B23F
accent
#EB3D74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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