#5D31BF#5D31BF

#5D31BF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.205 H 290.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5D31BF
RGBrgb(93, 49, 191)
HSLhsl(259, 59%, 47%)
HSVhsv(259, 74%, 75%)
CMYKcmyk(51.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(34.57, 52.31, -67.20)
CIE-LCHlch(34.57, 85.17, 307.90°)
OKLaboklab(45.93% 0.0702 -0.1931)
OKLCHoklch(45.93% 0.205 290)
XYZxyz(15.0138, 8.2847, 50.0881)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31BF #93BF31
analogous
#314CBF #5D31BF #A431BF
triadic
#5D31BF #BF5D31 #31BF5D
tetradic
#5D31BF #BF314C #93BF31 #31BFA4
square
#5D31BF #BF314C #93BF31 #31BFA4
split-complementary
#5D31BF #BFA431 #4CBF31
monochromatic
#2E185E #45258E #5D31BF #7F59D4 #A58AE1

Accessibility & contrast

On white

7.90
#5D31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5D31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31BF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31BF#FFFFFF#000000##FFFFFF
##5D31BF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#3A5876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d31bf;
/* rgb */ color: rgb(93, 49, 191);
/* oklch */ color: oklch(45.9% 0.205 290.0);
Tailwind
colors: {
  custom: {
    50: '#956ed3',
    500: '#5d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #5d31bf;
$custom-light: #956ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31bf",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 258.592,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45932,
    "c": 0.20543,
    "h": 290
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#5D31BF
secondary
#B4CB81
accent
#E245B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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