#5D1F9F#5D1F9F

#5D1F9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.189 H 299.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5D1F9F
RGBrgb(93, 31, 159)
HSLhsl(269, 67%, 37%)
HSVhsv(269, 81%, 62%)
CMYKcmyk(41.5%, 80.5%, 0%, 37.6%)
CIE-LABlab(28.93, 51.91, -57.32)
CIE-LCHlch(28.93, 77.33, 312.17°)
OKLaboklab(41.11% 0.0935 -0.1639)
OKLCHoklch(41.11% 0.189 299.7)
XYZxyz(11.2606, 5.8102, 33.3224)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F9F #619F1F
analogous
#1F219F #5D1F9F #9D1F9F
triadic
#5D1F9F #9F5D1F #1F9F5D
tetradic
#5D1F9F #9F1F21 #619F1F #1F9F9D
square
#5D1F9F #9F1F21 #619F1F #1F9F9D
split-complementary
#5D1F9F #9F9D1F #219F1F
monochromatic
#210B39 #3F156C #5D1F9F #7B29D2 #9A5ADF

Accessibility & contrast

On white

9.71
#5D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F9F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F9F#FFFFFF#000000##FFFFFF
##5D1F9F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4D435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1f9f;
/* rgb */ color: rgb(93, 31, 159);
/* oklch */ color: oklch(41.1% 0.189 299.7);
Tailwind
colors: {
  custom: {
    50: '#9263bc',
    500: '#5d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f9f;
$custom-light: #9263bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f9f",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 269.063,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41105,
    "c": 0.18873,
    "h": 299.7
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#5D1F9F
secondary
#8FC357
accent
#EA3E97
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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