#5D1F85#5D1F85

#5D1F85 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.162 H 308.2°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5D1F85
RGBrgb(93, 31, 133)
HSLhsl(276, 62%, 32%)
HSVhsv(276, 77%, 52%)
CMYKcmyk(30.1%, 76.7%, 0%, 47.8%)
CIE-LABlab(26.74, 45.67, -44.84)
CIE-LCHlch(26.74, 64.01, 315.52°)
OKLaboklab(38.89% 0.1002 -0.1273)
OKLCHoklch(38.89% 0.162 308.2)
XYZxyz(9.2369, 5.0007, 22.6644)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F85 #47851F
analogous
#2A1F85 #5D1F85 #851F7A
triadic
#5D1F85 #855D1F #1F855D
tetradic
#5D1F85 #852A1F #47851F #1F7A85
square
#5D1F85 #852A1F #47851F #1F7A85
split-complementary
#5D1F85 #7A851F #1F852A
monochromatic
#180822 #3A1353 #5D1F85 #802BB7 #9E4AD5

Accessibility & contrast

On white

10.50
#5D1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F85
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F85#FFFFFF#000000##FFFFFF
##5D1F851.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#573751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1f85;
/* rgb */ color: rgb(93, 31, 133);
/* oklch */ color: oklch(38.9% 0.162 308.2);
Tailwind
colors: {
  custom: {
    50: '#8f61a9',
    500: '#5d1f85',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f85;
$custom-light: #8f61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f85",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 276.471,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.16198,
    "h": 308.2
  },
  "luminance": 0.05001
}

Semantic roles & 50–950 ramp

primary
#5D1F85
secondary
#74B749
accent
#E54382
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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