#5D1FA9#5D1FA9

#5D1FA9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.199 H 297.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5D1FA9
RGBrgb(93, 31, 169)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 82%, 66%)
CMYKcmyk(45%, 81.7%, 0%, 33.7%)
CIE-LABlab(29.84, 54.38, -61.87)
CIE-LCHlch(29.84, 82.37, 311.31°)
OKLaboklab(42.02% 0.0903 -0.1773)
OKLCHoklch(42.02% 0.199 297)
XYZxyz(12.1637, 6.1714, 38.0788)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1FA9 #6BA91F
analogous
#1F26A9 #5D1FA9 #A21FA9
triadic
#5D1FA9 #A95D1F #1FA95D
tetradic
#5D1FA9 #A91F26 #6BA91F #1FA9A2
square
#5D1FA9 #A91F26 #6BA91F #1FA9A2
split-complementary
#5D1FA9 #A9A21F #26A91F
monochromatic
#240C42 #411675 #5D1FA9 #7A2DD8 #9B60E2

Accessibility & contrast

On white

9.40
#5D1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5D1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1FA9
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1FA9#FFFFFF#000000##FFFFFF
##5D1FA91.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#484765
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d1fa9;
/* rgb */ color: rgb(93, 31, 169);
/* oklch */ color: oklch(42.0% 0.199 297.0);
Tailwind
colors: {
  custom: {
    50: '#9363c4',
    500: '#5d1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5d1fa9;
$custom-light: #9363c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1fa9",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 266.957,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42018,
    "c": 0.19898,
    "h": 297
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#5D1FA9
secondary
#97C75D
accent
#EC3C9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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