#5D1F83#5D1F83

#5D1F83 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.160 H 309.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5D1F83
RGBrgb(93, 31, 131)
HSLhsl(277, 62%, 32%)
HSVhsv(277, 76%, 51%)
CMYKcmyk(29%, 76.3%, 0%, 48.6%)
CIE-LABlab(26.58, 45.20, -43.84)
CIE-LCHlch(26.58, 62.97, 315.87°)
OKLaboklab(38.73% 0.1006 -0.1244)
OKLCHoklch(38.73% 0.16 309)
XYZxyz(9.1001, 4.9460, 21.9436)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F83 #45831F
analogous
#2B1F83 #5D1F83 #831F77
triadic
#5D1F83 #835D1F #1F835D
tetradic
#5D1F83 #832B1F #45831F #1F7783
square
#5D1F83 #832B1F #45831F #1F7783
split-complementary
#5D1F83 #77831F #1F832B
monochromatic
#170820 #3A1352 #5D1F83 #802BB4 #9F49D4

Accessibility & contrast

On white

10.56
#5D1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F83
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F83#FFFFFF#000000##FFFFFF
##5D1F831.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#014081
Tritanopia (blue-blind)
#57374F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1f83;
/* rgb */ color: rgb(93, 31, 131);
/* oklch */ color: oklch(38.7% 0.160 309.0);
Tailwind
colors: {
  custom: {
    50: '#8f61a8',
    500: '#5d1f83',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f83;
$custom-light: #8f61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f83",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 277.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38729,
    "c": 0.15992,
    "h": 309
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#5D1F83
secondary
#72B648
accent
#E54380
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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