#5D317B#5D317B

#5D317B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.125 H 309.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5D317B
RGBrgb(93, 49, 123)
HSLhsl(276, 43%, 34%)
HSVhsv(276, 60%, 48%)
CMYKcmyk(24.4%, 60.2%, 0%, 51.8%)
CIE-LABlab(29.30, 34.22, -34.44)
CIE-LCHlch(29.30, 48.56, 314.81°)
OKLaboklab(40.5% 0.0794 -0.0969)
OKLCHoklch(40.5% 0.125 309.3)
XYZxyz(9.1870, 5.9540, 19.4003)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D317B #4F7B31
analogous
#38317B #5D317B #7B3174
triadic
#5D317B #7B5D31 #317B5D
tetradic
#5D317B #7B3831 #4F7B31 #31747B
square
#5D317B #7B3831 #4F7B31 #31747B
split-complementary
#5D317B #747B31 #317B38
monochromatic
#1B0E23 #3C204F #5D317B #7E42A7 #9C65C2

Accessibility & contrast

On white

9.59
#5D317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5D317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D317B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D317B#FFFFFF#000000##FFFFFF
##5D317B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#284679
Tritanopia (blue-blind)
#593F51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d317b;
/* rgb */ color: rgb(93, 49, 123);
/* oklch */ color: oklch(40.5% 0.125 309.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ba1',
    500: '#5d317b',
    950: '#000000',
  },
}
SCSS
$custom: #5d317b;
$custom-light: #8d6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d317b",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 275.676,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.12526,
    "h": 309.3
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#5D317B
secondary
#7DA95F
accent
#D35588
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D317B

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

Preview Lab → · Contrast checker → · Palette generator →

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