#5D31AE#5D31AE

#5D31AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.186 H 293.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5D31AE
RGBrgb(93, 49, 174)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 68%)
CMYKcmyk(46.6%, 71.8%, 0%, 31.8%)
CIE-LABlab(33.09, 47.66, -59.55)
CIE-LCHlch(33.09, 76.27, 308.67°)
OKLaboklab(44.43% 0.074 -0.1706)
OKLCHoklch(44.43% 0.186 293.5)
XYZxyz(13.2504, 7.5794, 40.8010)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31AE #82AE31
analogous
#3143AE #5D31AE #9B31AE
triadic
#5D31AE #AE5D31 #31AE5D
tetradic
#5D31AE #AE3143 #82AE31 #31AE9B
square
#5D31AE #AE3143 #82AE31 #31AE9B
split-complementary
#5D31AE #AE9B31 #43AE31
monochromatic
#2A164E #43247E #5D31AE #7B4FCD #9F7FDB

Accessibility & contrast

On white

8.35
#5D31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5D31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31AE
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31AE#FFFFFF#000000##FFFFFF
##5D31AE1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#45516C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d31ae;
/* rgb */ color: rgb(93, 49, 174);
/* oklch */ color: oklch(44.4% 0.186 293.5);
Tailwind
colors: {
  custom: {
    50: '#926dc7',
    500: '#5d31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5d31ae;
$custom-light: #926dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31ae",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 261.12,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44433,
    "c": 0.18599,
    "h": 293.5
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#5D31AE
secondary
#A9C477
accent
#DF48AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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