#5D1487#5D1487

#5D1487 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.175 H 308.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5D1487
RGBrgb(93, 20, 135)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 53%)
CMYKcmyk(31.1%, 85.2%, 0%, 47.1%)
CIE-LABlab(25.49, 50.19, -48.12)
CIE-LCHlch(25.49, 69.53, 316.21°)
OKLaboklab(38.07% 0.109 -0.1368)
OKLCHoklch(38.07% 0.175 308.5)
XYZxyz(9.1366, 4.5769, 23.3191)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1487 #3E8714
analogous
#231487 #5D1487 #871477
triadic
#5D1487 #875D14 #14875D
tetradic
#5D1487 #872314 #3E8714 #147787
square
#5D1487 #872314 #3E8714 #147787
split-complementary
#5D1487 #778714 #148723
monochromatic
#14041C #380C52 #5D1487 #821CBC #A234E1

Accessibility & contrast

On white

10.96
#5D1487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1487
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1487#FFFFFF#000000##FFFFFF
##5D14871.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#56334F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1487;
/* rgb */ color: rgb(93, 20, 135);
/* oklch */ color: oklch(38.1% 0.175 308.5);
Tailwind
colors: {
  custom: {
    50: '#905dab',
    500: '#5d1487',
    950: '#000000',
  },
}
SCSS
$custom: #5d1487;
$custom-light: #905dab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1487",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 135
  },
  "hsl": {
    "h": 278.087,
    "s": 74.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38069,
    "c": 0.17496,
    "h": 308.5
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#5D1487
secondary
#6ABB3B
accent
#F1377B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1487

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

Preview Lab → · Contrast checker → · Palette generator →

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