#5D31DC#5D31DC

#5D31DC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.238 H 285.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5D31DC
RGBrgb(93, 49, 220)
HSLhsl(255, 71%, 53%)
HSVhsv(255, 78%, 86%)
CMYKcmyk(57.7%, 77.7%, 0%, 13.7%)
CIE-LABlab(37.28, 60.25, -79.58)
CIE-LCHlch(37.28, 99.82, 307.13°)
OKLaboklab(48.65% 0.0623 -0.2293)
OKLCHoklch(48.65% 0.238 285.2)
XYZxyz(18.5269, 9.6900, 68.5904)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31DC #B0DC31
analogous
#315ADC #5D31DC #B331DC
triadic
#5D31DC #DC5D31 #31DC5D
tetradic
#5D31DC #DC315A #B0DC31 #31DCB3
square
#5D31DC #DC315A #B0DC31 #31DCB3
split-complementary
#5D31DC #DCB331 #5ADC31
monochromatic
#30157D #441EB2 #5D31DC #8665E5 #AF9AEE

Accessibility & contrast

On white

7.15
#5D31DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D31DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31DC
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31DC#FFFFFF#000000##FFFFFF
##5D31DC1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE1
Deuteranopia (green-blind)
#0052D9
Tritanopia (blue-blind)
#146386
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d31dc;
/* rgb */ color: rgb(93, 49, 220);
/* oklch */ color: oklch(48.6% 0.238 285.2);
Tailwind
colors: {
  custom: {
    50: '#996fe8',
    500: '#5d31dc',
    950: '#000000',
  },
}
SCSS
$custom: #5d31dc;
$custom-light: #996fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31dc",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 220
  },
  "hsl": {
    "h": 255.439,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48649,
    "c": 0.2376,
    "h": 285.2
  },
  "luminance": 0.09691
}

Semantic roles & 50–950 ramp

primary
#5D31DC
secondary
#C6D98F
accent
#EE3ABF
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D31DC

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

Preview Lab → · Contrast checker → · Palette generator →

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