#5D31AF#5D31AF

#5D31AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.187 H 293.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5D31AF
RGBrgb(93, 49, 175)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 69%)
CMYKcmyk(46.9%, 72%, 0%, 31.4%)
CIE-LABlab(33.18, 47.93, -60.01)
CIE-LCHlch(33.18, 76.80, 308.62°)
OKLaboklab(44.52% 0.0738 -0.172)
OKLCHoklch(44.52% 0.187 293.2)
XYZxyz(13.3482, 7.6185, 41.3163)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31AF #83AF31
analogous
#3144AF #5D31AF #9C31AF
triadic
#5D31AF #AF5D31 #31AF5D
tetradic
#5D31AF #AF3144 #83AF31 #31AF9C
square
#5D31AF #AF3144 #83AF31 #31AF9C
split-complementary
#5D31AF #AF9C31 #44AF31
monochromatic
#2A164F #44247F #5D31AF #7C4FCE #9F7FDB

Accessibility & contrast

On white

8.32
#5D31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D31AF
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31AF#FFFFFF#000000##FFFFFF
##5D31AF1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#44516D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d31af;
/* rgb */ color: rgb(93, 49, 175);
/* oklch */ color: oklch(44.5% 0.187 293.2);
Tailwind
colors: {
  custom: {
    50: '#926dc8',
    500: '#5d31af',
    950: '#000000',
  },
}
SCSS
$custom: #5d31af;
$custom-light: #926dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31af",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 260.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44519,
    "c": 0.18715,
    "h": 293.2
  },
  "luminance": 0.07619
}

Semantic roles & 50–950 ramp

primary
#5D31AF
secondary
#A9C478
accent
#E048AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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