#5D187A#5D187A

#5D187A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.159 H 313.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5D187A
RGBrgb(93, 24, 122)
HSLhsl(282, 67%, 29%)
HSVhsv(282, 80%, 48%)
CMYKcmyk(23.8%, 80.3%, 0%, 52.2%)
CIE-LABlab(24.91, 45.97, -40.87)
CIE-LCHlch(24.91, 61.51, 318.36°)
OKLaboklab(37.33% 0.109 -0.1156)
OKLCHoklch(37.33% 0.159 313.3)
XYZxyz(8.3531, 4.3858, 18.8151)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D187A #357A18
analogous
#2C187A #5D187A #7A1866
triadic
#5D187A #7A5D18 #187A5D
tetradic
#5D187A #7A2C18 #357A18 #18667A
square
#5D187A #7A2C18 #357A18 #18667A
split-complementary
#5D187A #667A18 #187A2C
monochromatic
#13051A #360E47 #5D187A #8422AD #A735D7

Accessibility & contrast

On white

11.19
#5D187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D187A
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D187A#FFFFFF#000000##FFFFFF
##5D187A1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#5A2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d187a;
/* rgb */ color: rgb(93, 24, 122);
/* oklch */ color: oklch(37.3% 0.159 313.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ea1',
    500: '#5d187a',
    950: '#000000',
  },
}
SCSS
$custom: #5d187a;
$custom-light: #8f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d187a",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 282.245,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.15886,
    "h": 313.3
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#5D187A
secondary
#60AF3F
accent
#EA3E71
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D187A

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

Preview Lab → · Contrast checker → · Palette generator →

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