#5D31A3#5D31A3

#5D31A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.173 H 296.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5D31A3
RGBrgb(93, 49, 163)
HSLhsl(263, 54%, 42%)
HSVhsv(263, 70%, 64%)
CMYKcmyk(42.9%, 69.9%, 0%, 36.1%)
CIE-LABlab(32.19, 44.67, -54.42)
CIE-LCHlch(32.19, 70.41, 309.38°)
OKLaboklab(43.51% 0.0761 -0.1556)
OKLCHoklch(43.51% 0.173 296.1)
XYZxyz(12.2216, 7.1679, 35.3828)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31A3 #77A331
analogous
#313EA3 #5D31A3 #9631A3
triadic
#5D31A3 #A35D31 #31A35D
tetradic
#5D31A3 #A3313E #77A331 #31A396
square
#5D31A3 #A3313E #77A331 #31A396
split-complementary
#5D31A3 #A39631 #3EA331
monochromatic
#271545 #422374 #5D31A3 #7A49C8 #9C78D6

Accessibility & contrast

On white

8.63
#5D31A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5D31A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31A3
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31A3#FFFFFF#000000##FFFFFF
##5D31A31.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#4B4D66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d31a3;
/* rgb */ color: rgb(93, 49, 163);
/* oklch */ color: oklch(43.5% 0.173 296.1);
Tailwind
colors: {
  custom: {
    50: '#916dbf',
    500: '#5d31a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d31a3;
$custom-light: #916dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31a3",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 263.158,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43507,
    "c": 0.17319,
    "h": 296.1
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#5D31A3
secondary
#A1BF71
accent
#DD4BA5
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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