#5D1F99#5D1F99

#5D1F99 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.183 H 301.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5D1F99
RGBrgb(93, 31, 153)
HSLhsl(270, 66%, 36%)
HSVhsv(270, 80%, 60%)
CMYKcmyk(39.2%, 79.7%, 0%, 40%)
CIE-LABlab(28.40, 50.45, -54.52)
CIE-LCHlch(28.40, 74.28, 312.78°)
OKLaboklab(40.57% 0.0953 -0.1557)
OKLCHoklch(40.57% 0.183 301.5)
XYZxyz(10.7526, 5.6070, 30.6466)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F99 #5B991F
analogous
#201F99 #5D1F99 #991F98
triadic
#5D1F99 #995D1F #1F995D
tetradic
#5D1F99 #99201F #5B991F #1F9899
square
#5D1F99 #99201F #5B991F #1F9899
split-complementary
#5D1F99 #98991F #1F9920
monochromatic
#1F0A33 #3E1566 #5D1F99 #7C29CC #9A56DD

Accessibility & contrast

On white

9.90
#5D1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F99
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F99#FFFFFF#000000##FFFFFF
##5D1F991.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#50405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1f99;
/* rgb */ color: rgb(93, 31, 153);
/* oklch */ color: oklch(40.6% 0.183 301.5);
Tailwind
colors: {
  custom: {
    50: '#9163b8',
    500: '#5d1f99',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f99;
$custom-light: #9163b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f99",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 270.492,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.18257,
    "h": 301.5
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#5D1F99
secondary
#89C054
accent
#E93F93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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