#5D1F87#5D1F87

#5D1F87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.164 H 307.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5D1F87
RGBrgb(93, 31, 135)
HSLhsl(276, 63%, 33%)
HSVhsv(276, 77%, 53%)
CMYKcmyk(31.1%, 77%, 0%, 47.1%)
CIE-LABlab(26.90, 46.14, -45.84)
CIE-LCHlch(26.90, 65.04, 315.19°)
OKLaboklab(39.05% 0.0998 -0.1302)
OKLCHoklch(39.05% 0.164 307.5)
XYZxyz(9.3764, 5.0565, 23.3990)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F87 #49871F
analogous
#291F87 #5D1F87 #871F7D
triadic
#5D1F87 #875D1F #1F875D
tetradic
#5D1F87 #87291F #49871F #1F7D87
square
#5D1F87 #87291F #49871F #1F7D87
split-complementary
#5D1F87 #7D871F #1F8729
monochromatic
#180823 #3B1455 #5D1F87 #7F2AB9 #9E4BD6

Accessibility & contrast

On white

10.44
#5D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F87
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F87#FFFFFF#000000##FFFFFF
##5D1F871.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#563852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1f87;
/* rgb */ color: rgb(93, 31, 135);
/* oklch */ color: oklch(39.1% 0.164 307.5);
Tailwind
colors: {
  custom: {
    50: '#8f62ab',
    500: '#5d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f87;
$custom-light: #8f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f87",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 275.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39051,
    "c": 0.16404,
    "h": 307.5
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#5D1F87
secondary
#76B84A
accent
#E64284
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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