#5D187C#5D187C

#5D187C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.161 H 312.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5D187C
RGBrgb(93, 24, 124)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 49%)
CMYKcmyk(25%, 80.6%, 0%, 51.4%)
CIE-LABlab(25.06, 46.41, -41.89)
CIE-LCHlch(25.06, 62.52, 317.93°)
OKLaboklab(37.49% 0.1086 -0.1186)
OKLCHoklch(37.49% 0.161 312.5)
XYZxyz(8.4783, 4.4359, 19.4745)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D187C #377C18
analogous
#2B187C #5D187C #7C1869
triadic
#5D187C #7C5D18 #187C5D
tetradic
#5D187C #7C2B18 #377C18 #18697C
square
#5D187C #7C2B18 #377C18 #18697C
split-complementary
#5D187C #697C18 #187C2B
monochromatic
#13051A #370E49 #5D187C #8322AF #A636D8

Accessibility & contrast

On white

11.13
#5D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D187C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D187C#FFFFFF#000000##FFFFFF
##5D187C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#073D7A
Tritanopia (blue-blind)
#59304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d187c;
/* rgb */ color: rgb(93, 24, 124);
/* oklch */ color: oklch(37.5% 0.161 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f5ea3',
    500: '#5d187c',
    950: '#000000',
  },
}
SCSS
$custom: #5d187c;
$custom-light: #8f5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d187c",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 281.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.16077,
    "h": 312.5
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#5D187C
secondary
#62B13F
accent
#EA3D73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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