#5D1F9D#5D1F9D

#5D1F9D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.187 H 300.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5D1F9D
RGBrgb(93, 31, 157)
HSLhsl(270, 67%, 37%)
HSVhsv(270, 80%, 62%)
CMYKcmyk(40.8%, 80.3%, 0%, 38.4%)
CIE-LABlab(28.75, 51.43, -56.39)
CIE-LCHlch(28.75, 76.32, 312.36°)
OKLaboklab(40.93% 0.0941 -0.1612)
OKLCHoklch(40.93% 0.187 300.3)
XYZxyz(11.0885, 5.7413, 32.4157)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F9D #5F9D1F
analogous
#1F209D #5D1F9D #9C1F9D
triadic
#5D1F9D #9D5D1F #1F9D5D
tetradic
#5D1F9D #9D1F20 #5F9D1F #1F9D9C
square
#5D1F9D #9D1F20 #5F9D1F #1F9D9C
split-complementary
#5D1F9D #9D9C1F #209D1F
monochromatic
#200B37 #3F156A #5D1F9D #7B29D0 #9A58DE

Accessibility & contrast

On white

9.78
#5D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F9D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F9D#FFFFFF#000000##FFFFFF
##5D1F9D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#4E425E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1f9d;
/* rgb */ color: rgb(93, 31, 157);
/* oklch */ color: oklch(40.9% 0.187 300.3);
Tailwind
colors: {
  custom: {
    50: '#9163bb',
    500: '#5d1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f9d;
$custom-light: #9163bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f9d",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 269.524,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40927,
    "c": 0.18667,
    "h": 300.3
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#5D1F9D
secondary
#8DC256
accent
#EA3E95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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