#5D31B2#5D31B2

#5D31B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.191 H 292.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5D31B2
RGBrgb(93, 49, 178)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 72%, 70%)
CMYKcmyk(47.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(33.43, 48.75, -61.38)
CIE-LCHlch(33.43, 78.38, 308.46°)
OKLaboklab(44.78% 0.0732 -0.176)
OKLCHoklch(44.78% 0.191 292.6)
XYZxyz(13.6462, 7.7377, 42.8854)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31B2 #86B231
analogous
#3146B2 #5D31B2 #9E31B2
triadic
#5D31B2 #B25D31 #31B25D
tetradic
#5D31B2 #B23146 #86B231 #31B29E
square
#5D31B2 #B23146 #86B231 #31B29E
split-complementary
#5D31B2 #B29E31 #46B231
monochromatic
#2B1752 #442482 #5D31B2 #7C51CF #A081DC

Accessibility & contrast

On white

8.24
#5D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5D31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31B2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31B2#FFFFFF#000000##FFFFFF
##5D31B21.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#43536E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d31b2;
/* rgb */ color: rgb(93, 49, 178);
/* oklch */ color: oklch(44.8% 0.191 292.6);
Tailwind
colors: {
  custom: {
    50: '#936dca',
    500: '#5d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d31b2;
$custom-light: #936dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31b2",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 260.465,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44779,
    "c": 0.19061,
    "h": 292.6
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#5D31B2
secondary
#ABC579
accent
#E048AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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