#5D1F91#5D1F91

#5D1F91 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.174 H 304.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5D1F91
RGBrgb(93, 31, 145)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 57%)
CMYKcmyk(35.9%, 78.6%, 0%, 43.1%)
CIE-LABlab(27.71, 48.51, -50.72)
CIE-LCHlch(27.71, 70.19, 313.73°)
OKLaboklab(39.88% 0.0974 -0.1446)
OKLCHoklch(39.88% 0.174 304)
XYZxyz(10.1138, 5.3515, 27.2827)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F91 #53911F
analogous
#241F91 #5D1F91 #911F8C
triadic
#5D1F91 #915D1F #1F915D
tetradic
#5D1F91 #91241F #53911F #1F8C91
square
#5D1F91 #91241F #53911F #1F8C91
split-complementary
#5D1F91 #8C911F #1F9124
monochromatic
#1C092C #3D145F #5D1F91 #7D2AC3 #9B51DA

Accessibility & contrast

On white

10.14
#5D1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1F91
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F91#FFFFFF#000000##FFFFFF
##5D1F911.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#533D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1f91;
/* rgb */ color: rgb(93, 31, 145);
/* oklch */ color: oklch(39.9% 0.174 304.0);
Tailwind
colors: {
  custom: {
    50: '#9062b2',
    500: '#5d1f91',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f91;
$custom-light: #9062b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f91",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 272.632,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.17434,
    "h": 304
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#5D1F91
secondary
#81BD4F
accent
#E8408D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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