#5D1F90#5D1F90

#5D1F90 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.173 H 304.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5D1F90
RGBrgb(93, 31, 144)
HSLhsl(273, 65%, 34%)
HSVhsv(273, 78%, 56%)
CMYKcmyk(35.4%, 78.5%, 0%, 43.5%)
CIE-LABlab(27.63, 48.27, -50.24)
CIE-LCHlch(27.63, 69.67, 313.86°)
OKLaboklab(39.8% 0.0977 -0.1431)
OKLCHoklch(39.8% 0.173 304.3)
XYZxyz(10.0371, 5.3208, 26.8784)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F90 #52901F
analogous
#241F90 #5D1F90 #901F8B
triadic
#5D1F90 #905D1F #1F905D
tetradic
#5D1F90 #90241F #52901F #1F8B90
square
#5D1F90 #90241F #52901F #1F8B90
split-complementary
#5D1F90 #8B901F #1F9024
monochromatic
#1C092B #3C145E #5D1F90 #7E2AC2 #9B50D9

Accessibility & contrast

On white

10.17
#5D1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F90
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F90#FFFFFF#000000##FFFFFF
##5D1F901.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#533C57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1f90;
/* rgb */ color: rgb(93, 31, 144);
/* oklch */ color: oklch(39.8% 0.173 304.3);
Tailwind
colors: {
  custom: {
    50: '#9062b1',
    500: '#5d1f90',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f90;
$custom-light: #9062b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f90",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 272.92,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.1733,
    "h": 304.3
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#5D1F90
secondary
#80BC4E
accent
#E8408C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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