#5D1875#5D1875

#5D1875 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.154 H 315.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5D1875
RGBrgb(93, 24, 117)
HSLhsl(285, 66%, 28%)
HSVhsv(285, 79%, 46%)
CMYKcmyk(20.5%, 79.5%, 0%, 54.1%)
CIE-LABlab(24.53, 44.89, -38.29)
CIE-LCHlch(24.53, 59.01, 319.54°)
OKLaboklab(36.94% 0.1099 -0.108)
OKLCHoklch(36.94% 0.154 315.5)
XYZxyz(8.0512, 4.2651, 17.2253)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1875 #307518
analogous
#2E1875 #5D1875 #75185E
triadic
#5D1875 #755D18 #18755D
tetradic
#5D1875 #752E18 #307518 #185E75
square
#5D1875 #752E18 #307518 #185E75
split-complementary
#5D1875 #5E7518 #18752E
monochromatic
#140519 #350E42 #5D1875 #8522A8 #AB32D5

Accessibility & contrast

On white

11.33
#5D1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1875
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1875#FFFFFF#000000##FFFFFF
##5D18751.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#153C73
Tritanopia (blue-blind)
#5B2D46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1875;
/* rgb */ color: rgb(93, 24, 117);
/* oklch */ color: oklch(36.9% 0.154 315.5);
Tailwind
colors: {
  custom: {
    50: '#8e5d9d',
    500: '#5d1875',
    950: '#000000',
  },
}
SCSS
$custom: #5d1875;
$custom-light: #8e5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1875",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 284.516,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36943,
    "c": 0.15408,
    "h": 315.5
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#5D1875
secondary
#5AAA3F
accent
#E93F6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1875

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

Preview Lab → · Contrast checker → · Palette generator →

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