#5D187F#5D187F

#5D187F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 311.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5D187F
RGBrgb(93, 24, 127)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 50%)
CMYKcmyk(26.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(25.30, 47.07, -43.40)
CIE-LCHlch(25.30, 64.02, 317.32°)
OKLaboklab(37.73% 0.108 -0.123)
OKLCHoklch(37.73% 0.164 311.3)
XYZxyz(8.6709, 4.5130, 20.4889)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D187F #3A7F18
analogous
#29187F #5D187F #7F186E
triadic
#5D187F #7F5D18 #187F5D
tetradic
#5D187F #7F2918 #3A7F18 #186E7F
square
#5D187F #7F2918 #3A7F18 #186E7F
split-complementary
#5D187F #6E7F18 #187F29
monochromatic
#13051A #370E4C #5D187F #8322B2 #A438D9

Accessibility & contrast

On white

11.04
#5D187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D187F
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D187F#FFFFFF#000000##FFFFFF
##5D187F1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#59314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d187f;
/* rgb */ color: rgb(93, 24, 127);
/* oklch */ color: oklch(37.7% 0.164 311.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ea5',
    500: '#5d187f',
    950: '#000000',
  },
}
SCSS
$custom: #5d187f;
$custom-light: #8f5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d187f",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 280.194,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37728,
    "c": 0.16366,
    "h": 311.3
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#5D187F
secondary
#66B33F
accent
#EB3D76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D187F

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

Preview Lab → · Contrast checker → · Palette generator →

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