#5D1F9E#5D1F9E

#5D1F9E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.188 H 300.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5D1F9E
RGBrgb(93, 31, 158)
HSLhsl(269, 67%, 37%)
HSVhsv(269, 80%, 62%)
CMYKcmyk(41.1%, 80.4%, 0%, 38%)
CIE-LABlab(28.84, 51.67, -56.85)
CIE-LCHlch(28.84, 76.83, 312.27°)
OKLaboklab(41.02% 0.0938 -0.1626)
OKLCHoklch(41.02% 0.188 300)
XYZxyz(11.1742, 5.7756, 32.8672)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F9E #609E1F
analogous
#1F219E #5D1F9E #9D1F9E
triadic
#5D1F9E #9E5D1F #1F9E5D
tetradic
#5D1F9E #9E1F21 #609E1F #1F9E9D
square
#5D1F9E #9E1F21 #609E1F #1F9E9D
split-complementary
#5D1F9E #9E9D1F #219E1F
monochromatic
#210B38 #3F156B #5D1F9E #7B29D1 #9A59DE

Accessibility & contrast

On white

9.74
#5D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1F9E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F9E#FFFFFF#000000##FFFFFF
##5D1F9E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4E425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1f9e;
/* rgb */ color: rgb(93, 31, 158);
/* oklch */ color: oklch(41.0% 0.188 300.0);
Tailwind
colors: {
  custom: {
    50: '#9263bc',
    500: '#5d1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f9e;
$custom-light: #9263bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f9e",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 269.291,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41016,
    "c": 0.1877,
    "h": 300
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#5D1F9E
secondary
#8EC256
accent
#EA3E96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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