#5D1F97#5D1F97

#5D1F97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.181 H 302.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5D1F97
RGBrgb(93, 31, 151)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(38.4%, 79.5%, 0%, 40.8%)
CIE-LABlab(28.22, 49.96, -53.58)
CIE-LCHlch(28.22, 73.26, 313.00°)
OKLaboklab(40.4% 0.0958 -0.153)
OKLCHoklch(40.4% 0.181 302.1)
XYZxyz(10.5888, 5.5415, 29.7839)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F97 #59971F
analogous
#211F97 #5D1F97 #971F95
triadic
#5D1F97 #975D1F #1F975D
tetradic
#5D1F97 #97211F #59971F #1F9597
square
#5D1F97 #97211F #59971F #1F9597
split-complementary
#5D1F97 #95971F #1F9721
monochromatic
#1E0A31 #3E1564 #5D1F97 #7C29CA #9A54DC

Accessibility & contrast

On white

9.96
#5D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F97
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F97#FFFFFF#000000##FFFFFF
##5D1F971.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#503F5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1f97;
/* rgb */ color: rgb(93, 31, 151);
/* oklch */ color: oklch(40.4% 0.181 302.1);
Tailwind
colors: {
  custom: {
    50: '#9162b7',
    500: '#5d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f97;
$custom-light: #9162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f97",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 271,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40398,
    "c": 0.18051,
    "h": 302.1
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#5D1F97
secondary
#87BF52
accent
#E93F91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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