#5D31D0#5D31D0

#5D31D0 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.224 H 287.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5D31D0
RGBrgb(93, 49, 208)
HSLhsl(257, 63%, 50%)
HSVhsv(257, 76%, 82%)
CMYKcmyk(55.3%, 76.4%, 0%, 18.4%)
CIE-LABlab(36.13, 56.97, -74.56)
CIE-LCHlch(36.13, 93.83, 307.39°)
OKLaboklab(47.5% 0.0657 -0.2146)
OKLCHoklch(47.5% 0.224 287)
XYZxyz(16.9943, 9.0769, 60.5188)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31D0 #A4D031
analogous
#3154D0 #5D31D0 #AD31D0
triadic
#5D31D0 #D05D31 #31D05D
tetradic
#5D31D0 #D03154 #A4D031 #31D0AD
square
#5D31D0 #D03154 #A4D031 #31D0AD
split-complementary
#5D31D0 #D0AD31 #54D031
monochromatic
#30196E #46249F #5D31D0 #8463DB #AB95E7

Accessibility & contrast

On white

7.46
#5D31D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5D31D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31D0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31D0#FFFFFF#000000##FFFFFF
##5D31D01.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D4
Deuteranopia (green-blind)
#0050CD
Tritanopia (blue-blind)
#295E7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d31d0;
/* rgb */ color: rgb(93, 49, 208);
/* oklch */ color: oklch(47.5% 0.224 287.0);
Tailwind
colors: {
  custom: {
    50: '#976fe0',
    500: '#5d31d0',
    950: '#000000',
  },
}
SCSS
$custom: #5d31d0;
$custom-light: #976fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31d0",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 256.604,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47503,
    "c": 0.22443,
    "h": 287
  },
  "luminance": 0.09078
}

Semantic roles & 50–950 ramp

primary
#5D31D0
secondary
#BED28B
accent
#E642B9
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5D31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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