#5D319A#5D319A

#5D319A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.163 H 298.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5D319A
RGBrgb(93, 49, 154)
HSLhsl(265, 52%, 40%)
HSVhsv(265, 68%, 60%)
CMYKcmyk(39.6%, 68.2%, 0%, 39.6%)
CIE-LABlab(31.48, 42.25, -50.12)
CIE-LCHlch(31.48, 65.55, 310.13°)
OKLaboklab(42.78% 0.0775 -0.1429)
OKLCHoklch(42.78% 0.163 298.5)
XYZxyz(11.4438, 6.8567, 31.2861)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D319A #6E9A31
analogous
#31399A #5D319A #92319A
triadic
#5D319A #9A5D31 #319A5D
tetradic
#5D319A #9A3139 #6E9A31 #319A92
square
#5D319A #9A3139 #6E9A31 #319A92
split-complementary
#5D319A #9A9231 #399A31
monochromatic
#25133D #41226C #5D319A #7A45C4 #9B73D2

Accessibility & contrast

On white

8.86
#5D319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D319A
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D319A#FFFFFF#000000##FFFFFF
##5D319A1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#4F4A61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d319a;
/* rgb */ color: rgb(93, 49, 154);
/* oklch */ color: oklch(42.8% 0.163 298.5);
Tailwind
colors: {
  custom: {
    50: '#906cb8',
    500: '#5d319a',
    950: '#000000',
  },
}
SCSS
$custom: #5d319a;
$custom-light: #906cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d319a",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 265.143,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42779,
    "c": 0.16256,
    "h": 298.5
  },
  "luminance": 0.06857
}

Semantic roles & 50–950 ramp

primary
#5D319A
secondary
#9ABA6C
accent
#DB4D9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D319A

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

Preview Lab → · Contrast checker → · Palette generator →

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