#5D2F87#5D2F87

#5D2F87 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.143 H 304.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5D2F87
RGBrgb(93, 47, 135)
HSLhsl(271, 48%, 36%)
HSVhsv(271, 65%, 53%)
CMYKcmyk(31.1%, 65.2%, 0%, 47.1%)
CIE-LABlab(29.69, 38.35, -41.32)
CIE-LCHlch(29.69, 56.38, 312.86°)
OKLaboklab(41.05% 0.0818 -0.117)
OKLCHoklch(41.05% 0.143 304.9)
XYZxyz(9.9029, 6.1095, 23.5745)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F87 #59872F
analogous
#312F87 #5D2F87 #872F85
triadic
#5D2F87 #875D2F #2F875D
tetradic
#5D2F87 #87312F #59872F #2F8587
square
#5D2F87 #87312F #59872F #2F8587
split-complementary
#5D2F87 #85872F #2F8731
monochromatic
#1E0F2C #3E1F5A #5D2F87 #7C3FB4 #9A66CA

Accessibility & contrast

On white

9.45
#5D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F87
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F87#FFFFFF#000000##FFFFFF
##5D2F871.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#194685
Tritanopia (blue-blind)
#554156
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2f87;
/* rgb */ color: rgb(93, 47, 135);
/* oklch */ color: oklch(41.0% 0.143 304.9);
Tailwind
colors: {
  custom: {
    50: '#8e6aaa',
    500: '#5d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f87;
$custom-light: #8e6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f87",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 271.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41045,
    "c": 0.1428,
    "h": 304.9
  },
  "luminance": 0.06109
}

Semantic roles & 50–950 ramp

primary
#5D2F87
secondary
#87B161
accent
#D85091
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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