#5D1E9E#5D1E9E

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

Color values

HEX#5D1E9E
RGBrgb(93, 30, 158)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 62%)
CMYKcmyk(41.1%, 81%, 0%, 38%)
CIE-LABlab(28.71, 52.06, -57.07)
CIE-LCHlch(28.71, 77.25, 312.37°)
OKLaboklab(40.92% 0.0946 -0.1632)
OKLCHoklch(40.92% 0.189 300.1)
XYZxyz(11.1485, 5.7242, 32.8586)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E9E #5F9E1E
analogous
#1E1F9E #5D1E9E #9D1E9E
triadic
#5D1E9E #9E5D1E #1E9E5D
tetradic
#5D1E9E #9E1E1F #5F9E1E #1E9E9D
square
#5D1E9E #9E1E1F #5F9E1E #1E9E9D
split-complementary
#5D1E9E #9E9D1E #1F9E1E
monochromatic
#200A37 #3F146B #5D1E9E #7B28D1 #9A57DF

Accessibility & contrast

On white

9.79
#5D1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D1E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E9E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E9E#FFFFFF#000000##FFFFFF
##5D1E9E1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1e9e;
/* rgb */ color: rgb(93, 30, 158);
/* oklch */ color: oklch(40.9% 0.189 300.1);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5d1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e9e;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e9e",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 269.531,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40923,
    "c": 0.18863,
    "h": 300.1
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#5D1E9E
secondary
#8DC355
accent
#EB3D95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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