#5D1F86#5D1F86

#5D1F86 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.163 H 307.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5D1F86
RGBrgb(93, 31, 134)
HSLhsl(276, 62%, 32%)
HSVhsv(276, 77%, 53%)
CMYKcmyk(30.6%, 76.9%, 0%, 47.5%)
CIE-LABlab(26.82, 45.90, -45.34)
CIE-LCHlch(26.82, 64.52, 315.35°)
OKLaboklab(38.97% 0.1 -0.1288)
OKLCHoklch(38.97% 0.163 307.8)
XYZxyz(9.3064, 5.0285, 23.0300)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F86 #48861F
analogous
#2A1F86 #5D1F86 #861F7B
triadic
#5D1F86 #865D1F #1F865D
tetradic
#5D1F86 #862A1F #48861F #1F7B86
square
#5D1F86 #862A1F #48861F #1F7B86
split-complementary
#5D1F86 #7B861F #1F862A
monochromatic
#180823 #3B1454 #5D1F86 #7F2AB8 #9E4AD5

Accessibility & contrast

On white

10.47
#5D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1F86
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F86#FFFFFF#000000##FFFFFF
##5D1F861.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#563851
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1f86;
/* rgb */ color: rgb(93, 31, 134);
/* oklch */ color: oklch(39.0% 0.163 307.8);
Tailwind
colors: {
  custom: {
    50: '#8f62aa',
    500: '#5d1f86',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f86;
$custom-light: #8f62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f86",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 276.117,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3897,
    "c": 0.16301,
    "h": 307.8
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#5D1F86
secondary
#75B849
accent
#E54283
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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