#5D319B#5D319B

#5D319B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.164 H 298.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5D319B
RGBrgb(93, 49, 155)
HSLhsl(265, 52%, 40%)
HSVhsv(265, 68%, 61%)
CMYKcmyk(40%, 68.4%, 0%, 39.2%)
CIE-LABlab(31.56, 42.51, -50.60)
CIE-LCHlch(31.56, 66.09, 310.04°)
OKLaboklab(42.86% 0.0774 -0.1443)
OKLCHoklch(42.86% 0.164 298.2)
XYZxyz(11.5274, 6.8902, 31.7266)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D319B #6F9B31
analogous
#313A9B #5D319B #92319B
triadic
#5D319B #9B5D31 #319B5D
tetradic
#5D319B #9B313A #6F9B31 #319B92
square
#5D319B #9B313A #6F9B31 #319B92
split-complementary
#5D319B #9B9231 #3A9B31
monochromatic
#25143E #41226D #5D319B #7A45C4 #9B73D3

Accessibility & contrast

On white

8.83
#5D319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D319B
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D319B#FFFFFF#000000##FFFFFF
##5D319B1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#4E4A62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d319b;
/* rgb */ color: rgb(93, 49, 155);
/* oklch */ color: oklch(42.9% 0.164 298.2);
Tailwind
colors: {
  custom: {
    50: '#906cb9',
    500: '#5d319b',
    950: '#000000',
  },
}
SCSS
$custom: #5d319b;
$custom-light: #906cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d319b",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 264.906,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.42858,
    "c": 0.16375,
    "h": 298.2
  },
  "luminance": 0.0689
}

Semantic roles & 50–950 ramp

primary
#5D319B
secondary
#9BBB6D
accent
#DB4CA0
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D319B

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

Preview Lab → · Contrast checker → · Palette generator →

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