#5D1970#5D1970

#5D1970 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.148 H 317.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5D1970
RGBrgb(93, 25, 112)
HSLhsl(287, 64%, 27%)
HSVhsv(287, 78%, 44%)
CMYKcmyk(17%, 77.7%, 0%, 56.1%)
CIE-LABlab(24.30, 43.45, -35.45)
CIE-LCHlch(24.30, 56.08, 320.79°)
OKLaboklab(36.66% 0.1096 -0.0997)
OKLCHoklch(36.66% 0.148 317.7)
XYZxyz(7.7860, 4.1926, 15.7252)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1970 #2C7019
analogous
#321970 #5D1970 #701958
triadic
#5D1970 #705D19 #19705D
tetradic
#5D1970 #703219 #2C7019 #195870
square
#5D1970 #703219 #2C7019 #195870
split-complementary
#5D1970 #587019 #197032
monochromatic
#150619 #330E3E #5D1970 #8724A2 #AF32D1

Accessibility & contrast

On white

11.42
#5D1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1970
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1970#FFFFFF#000000##FFFFFF
##5D19701.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#1C3C6E
Tritanopia (blue-blind)
#5C2B43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1970;
/* rgb */ color: rgb(93, 25, 112);
/* oklch */ color: oklch(36.7% 0.148 317.7);
Tailwind
colors: {
  custom: {
    50: '#8e5e9a',
    500: '#5d1970',
    950: '#000000',
  },
}
SCSS
$custom: #5d1970;
$custom-light: #8e5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1970",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 286.897,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.14817,
    "h": 317.7
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#5D1970
secondary
#56A540
accent
#E74165
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1970

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

Preview Lab → · Contrast checker → · Palette generator →

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