#5D31BC#5D31BC

#5D31BC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.202 H 290.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5D31BC
RGBrgb(93, 49, 188)
HSLhsl(259, 59%, 46%)
HSVhsv(259, 74%, 74%)
CMYKcmyk(50.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(34.30, 51.49, -65.88)
CIE-LCHlch(34.30, 83.61, 308.01°)
OKLaboklab(45.66% 0.0709 -0.1892)
OKLCHoklch(45.66% 0.202 290.5)
XYZxyz(14.6870, 8.1540, 48.3672)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31BC #90BC31
analogous
#314BBC #5D31BC #A331BC
triadic
#5D31BC #BC5D31 #31BC5D
tetradic
#5D31BC #BC314B #90BC31 #31BCA3
square
#5D31BC #BC314B #90BC31 #31BCA3
split-complementary
#5D31BC #BCA331 #4BBC31
monochromatic
#2D185B #45248B #5D31BC #7E57D3 #A388E0

Accessibility & contrast

On white

7.98
#5D31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31BC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31BC#FFFFFF#000000##FFFFFF
##5D31BC1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#3C5774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d31bc;
/* rgb */ color: rgb(93, 49, 188);
/* oklch */ color: oklch(45.7% 0.202 290.5);
Tailwind
colors: {
  custom: {
    50: '#946ed1',
    500: '#5d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #5d31bc;
$custom-light: #946ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31bc",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 258.993,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45662,
    "c": 0.20203,
    "h": 290.5
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#5D31BC
secondary
#B2CA7F
accent
#E246B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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