#5D1874#5D1874

#5D1874 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.153 H 315.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5D1874
RGBrgb(93, 24, 116)
HSLhsl(285, 66%, 27%)
HSVhsv(285, 79%, 45%)
CMYKcmyk(19.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(24.45, 44.68, -37.77)
CIE-LCHlch(24.45, 58.51, 319.79°)
OKLaboklab(36.87% 0.1101 -0.1065)
OKLCHoklch(36.87% 0.153 315.9)
XYZxyz(7.9927, 4.2417, 16.9173)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1874 #2F7418
analogous
#2F1874 #5D1874 #74185D
triadic
#5D1874 #745D18 #18745D
tetradic
#5D1874 #742F18 #2F7418 #185D74
square
#5D1874 #742F18 #2F7418 #185D74
split-complementary
#5D1874 #5D7418 #18742F
monochromatic
#140519 #340E41 #5D1874 #8622A7 #AC32D5

Accessibility & contrast

On white

11.36
#5D1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1874
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1874#FFFFFF#000000##FFFFFF
##5D18741.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#5B2C45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1874;
/* rgb */ color: rgb(93, 24, 116);
/* oklch */ color: oklch(36.9% 0.153 315.9);
Tailwind
colors: {
  custom: {
    50: '#8e5d9d',
    500: '#5d1874',
    950: '#000000',
  },
}
SCSS
$custom: #5d1874;
$custom-light: #8e5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1874",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 285,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36867,
    "c": 0.15313,
    "h": 315.9
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#5D1874
secondary
#59A93F
accent
#E93F6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1874

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

Preview Lab → · Contrast checker → · Palette generator →

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