#5D319E#5D319E

#5D319E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.167 H 297.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5D319E
RGBrgb(93, 49, 158)
HSLhsl(264, 53%, 41%)
HSVhsv(264, 69%, 62%)
CMYKcmyk(41.1%, 69%, 0%, 38%)
CIE-LABlab(31.79, 43.32, -52.04)
CIE-LCHlch(31.79, 67.71, 309.77°)
OKLaboklab(43.1% 0.0769 -0.1486)
OKLCHoklch(43.1% 0.167 297.4)
XYZxyz(11.7825, 6.9922, 33.0700)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D319E #729E31
analogous
#313B9E #5D319E #93319E
triadic
#5D319E #9E5D31 #319E5D
tetradic
#5D319E #9E313B #729E31 #319E93
square
#5D319E #9E313B #729E31 #319E93
split-complementary
#5D319E #9E9331 #3B9E31
monochromatic
#261441 #42236F #5D319E #7A46C6 #9C75D4

Accessibility & contrast

On white

8.76
#5D319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D319E
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D319E#FFFFFF#000000##FFFFFF
##5D319E1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4D4B63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d319e;
/* rgb */ color: rgb(93, 49, 158);
/* oklch */ color: oklch(43.1% 0.167 297.4);
Tailwind
colors: {
  custom: {
    50: '#906cbb',
    500: '#5d319e',
    950: '#000000',
  },
}
SCSS
$custom: #5d319e;
$custom-light: #906cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d319e",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 264.22,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43099,
    "c": 0.16729,
    "h": 297.4
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#5D319E
secondary
#9DBC6E
accent
#DC4CA2
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D319E

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

Preview Lab → · Contrast checker → · Palette generator →

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