#5D319F#5D319F

#5D319F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.168 H 297.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5D319F
RGBrgb(93, 49, 159)
HSLhsl(264, 53%, 41%)
HSVhsv(264, 69%, 62%)
CMYKcmyk(41.5%, 69.2%, 0%, 37.6%)
CIE-LABlab(31.87, 43.59, -52.52)
CIE-LCHlch(31.87, 68.25, 309.69°)
OKLaboklab(43.18% 0.0768 -0.15)
OKLCHoklch(43.18% 0.168 297.1)
XYZxyz(11.8689, 7.0268, 33.5251)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D319F #739F31
analogous
#313C9F #5D319F #94319F
triadic
#5D319F #9F5D31 #319F5D
tetradic
#5D319F #9F313C #739F31 #319F94
square
#5D319F #9F313C #739F31 #319F94
split-complementary
#5D319F #9F9431 #3C9F31
monochromatic
#261441 #422370 #5D319F #7A47C6 #9C76D5

Accessibility & contrast

On white

8.73
#5D319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D319F
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D319F#FFFFFF#000000##FFFFFF
##5D319F1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#4C4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d319f;
/* rgb */ color: rgb(93, 49, 159);
/* oklch */ color: oklch(43.2% 0.168 297.1);
Tailwind
colors: {
  custom: {
    50: '#916cbc',
    500: '#5d319f',
    950: '#000000',
  },
}
SCSS
$custom: #5d319f;
$custom-light: #916cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d319f",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 264,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4318,
    "c": 0.16848,
    "h": 297.1
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D319F

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

Preview Lab → · Contrast checker → · Palette generator →

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