#5D31D4#5D31D4

#5D31D4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.229 H 286.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5D31D4
RGBrgb(93, 49, 212)
HSLhsl(256, 65%, 51%)
HSVhsv(256, 77%, 83%)
CMYKcmyk(56.1%, 76.9%, 0%, 16.9%)
CIE-LABlab(36.51, 58.07, -76.25)
CIE-LCHlch(36.51, 95.84, 307.29°)
OKLaboklab(47.88% 0.0646 -0.2195)
OKLCHoklch(47.88% 0.229 286.4)
XYZxyz(17.4926, 9.2763, 63.1433)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31D4 #A8D431
analogous
#3156D4 #5D31D4 #AE31D4
triadic
#5D31D4 #D45D31 #31D45D
tetradic
#5D31D4 #D43156 #A8D431 #31D4AE
square
#5D31D4 #D43156 #A8D431 #31D4AE
split-complementary
#5D31D4 #D4AE31 #56D431
monochromatic
#301873 #4623A5 #5D31D4 #8564DF #AD96E9

Accessibility & contrast

On white

7.35
#5D31D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5D31D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31D4
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31D4#FFFFFF#000000##FFFFFF
##5D31D41.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#246082
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d31d4;
/* rgb */ color: rgb(93, 49, 212);
/* oklch */ color: oklch(47.9% 0.229 286.4);
Tailwind
colors: {
  custom: {
    50: '#986fe3',
    500: '#5d31d4',
    950: '#000000',
  },
}
SCSS
$custom: #5d31d4;
$custom-light: #986fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31d4",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 256.196,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47882,
    "c": 0.22884,
    "h": 286.4
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#5D31D4
secondary
#C1D48C
accent
#E83FBB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D31D4

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

Preview Lab → · Contrast checker → · Palette generator →

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