#5D2187#5D2187

#5D2187 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.162 H 307.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5D2187
RGBrgb(93, 33, 135)
HSLhsl(275, 61%, 33%)
HSVhsv(275, 76%, 53%)
CMYKcmyk(31.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(27.20, 45.27, -45.35)
CIE-LCHlch(27.20, 64.08, 314.95°)
OKLaboklab(39.26% 0.0978 -0.1288)
OKLCHoklch(39.26% 0.162 307.2)
XYZxyz(9.4303, 5.1643, 23.4170)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2187 #4B8721
analogous
#2A2187 #5D2187 #87217E
triadic
#5D2187 #875D21 #21875D
tetradic
#5D2187 #872A21 #4B8721 #217E87
square
#5D2187 #872A21 #4B8721 #217E87
split-complementary
#5D2187 #7E8721 #21872A
monochromatic
#190925 #3B1556 #5D2187 #7F2DB8 #9D4FD4

Accessibility & contrast

On white

10.33
#5D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2187
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2187#FFFFFF#000000##FFFFFF
##5D21871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#563952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2187;
/* rgb */ color: rgb(93, 33, 135);
/* oklch */ color: oklch(39.3% 0.162 307.2);
Tailwind
colors: {
  custom: {
    50: '#8f63ab',
    500: '#5d2187',
    950: '#000000',
  },
}
SCSS
$custom: #5d2187;
$custom-light: #8f63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2187",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 275.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39264,
    "c": 0.1617,
    "h": 307.2
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#5D2187
secondary
#79B74D
accent
#E44486
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2187

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

Preview Lab → · Contrast checker → · Palette generator →

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