#5D2E87#5D2E87

#5D2E87 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.144 H 305.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5D2E87
RGBrgb(93, 46, 135)
HSLhsl(272, 49%, 35%)
HSVhsv(272, 66%, 53%)
CMYKcmyk(31.1%, 65.9%, 0%, 47.1%)
CIE-LABlab(29.49, 38.89, -41.64)
CIE-LCHlch(29.49, 56.98, 313.04°)
OKLaboklab(40.9% 0.0831 -0.118)
OKLCHoklch(40.9% 0.144 305.1)
XYZxyz(9.8634, 6.0305, 23.5613)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E87 #58872E
analogous
#302E87 #5D2E87 #872E84
triadic
#5D2E87 #875D2E #2E875D
tetradic
#5D2E87 #87302E #58872E #2E8487
square
#5D2E87 #87302E #58872E #2E8487
split-complementary
#5D2E87 #84872E #2E8730
monochromatic
#1E0F2C #3E1E59 #5D2E87 #7C3EB5 #9B65CA

Accessibility & contrast

On white

9.52
#5D2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E87
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E87#FFFFFF#000000##FFFFFF
##5D2E871.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#564156
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2e87;
/* rgb */ color: rgb(93, 46, 135);
/* oklch */ color: oklch(40.9% 0.144 305.1);
Tailwind
colors: {
  custom: {
    50: '#8e6aaa',
    500: '#5d2e87',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e87;
$custom-light: #8e6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e87",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 271.685,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40902,
    "c": 0.14428,
    "h": 305.1
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#5D2E87
secondary
#86B160
accent
#D94F90
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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