#5D287D#5D287D

#5D287D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.142 H 310.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5D287D
RGBrgb(93, 40, 125)
HSLhsl(277, 52%, 32%)
HSVhsv(277, 68%, 49%)
CMYKcmyk(25.6%, 68%, 0%, 51%)
CIE-LABlab(27.64, 39.56, -38.35)
CIE-LCHlch(27.64, 55.10, 315.89°)
OKLaboklab(39.35% 0.0912 -0.1083)
OKLCHoklch(39.35% 0.142 310.1)
XYZxyz(8.9739, 5.3256, 19.9533)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D287D #487D28
analogous
#33287D #5D287D #7D2872
triadic
#5D287D #7D5D28 #287D5D
tetradic
#5D287D #7D3328 #487D28 #28727D
square
#5D287D #7D3328 #487D28 #28727D
split-complementary
#5D287D #727D28 #287D33
monochromatic
#180A20 #3B194F #5D287D #7F37AB #9E56C9

Accessibility & contrast

On white

10.17
#5D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D287D
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D287D#FFFFFF#000000##FFFFFF
##5D287D1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#59394F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d287d;
/* rgb */ color: rgb(93, 40, 125);
/* oklch */ color: oklch(39.3% 0.142 310.1);
Tailwind
colors: {
  custom: {
    50: '#8e66a3',
    500: '#5d287d',
    950: '#000000',
  },
}
SCSS
$custom: #5d287d;
$custom-light: #8e66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d287d",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 277.412,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.1416,
    "h": 310.1
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#5D287D
secondary
#75AE53
accent
#DB4D82
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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