#5D317D#5D317D

#5D317D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.128 H 308.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5D317D
RGBrgb(93, 49, 125)
HSLhsl(275, 44%, 34%)
HSVhsv(275, 61%, 49%)
CMYKcmyk(25.6%, 60.8%, 0%, 51%)
CIE-LABlab(29.42, 34.72, -35.50)
CIE-LCHlch(29.42, 49.65, 314.36°)
OKLaboklab(40.64% 0.0794 -0.1)
OKLCHoklch(40.64% 0.128 308.5)
XYZxyz(9.3134, 6.0046, 20.0664)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D317D #517D31
analogous
#37317D #5D317D #7D3177
triadic
#5D317D #7D5D31 #317D5D
tetradic
#5D317D #7D3731 #517D31 #31777D
square
#5D317D #7D3731 #517D31 #31777D
split-complementary
#5D317D #777D31 #317D37
monochromatic
#1C0F25 #3C2051 #5D317D #7E42A9 #9C66C3

Accessibility & contrast

On white

9.54
#5D317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D317D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D317D#FFFFFF#000000##FFFFFF
##5D317D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14447F
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#583F52
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d317d;
/* rgb */ color: rgb(93, 49, 125);
/* oklch */ color: oklch(40.6% 0.128 308.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ba3',
    500: '#5d317d',
    950: '#000000',
  },
}
SCSS
$custom: #5d317d;
$custom-light: #8d6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d317d",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 274.737,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40639,
    "c": 0.12768,
    "h": 308.5
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#5D317D
secondary
#7FAA60
accent
#D3548A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D317D

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

Preview Lab → · Contrast checker → · Palette generator →

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