#5E31A2#5E31A2

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

Color values

HEX#5E31A2
RGBrgb(94, 49, 162)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 64%)
CMYKcmyk(42%, 69.8%, 0%, 36.5%)
CIE-LABlab(32.22, 44.59, -53.75)
CIE-LCHlch(32.22, 69.84, 309.68°)
OKLaboklab(43.54% 0.0777 -0.1535)
OKLCHoklch(43.54% 0.172 296.9)
XYZxyz(12.2343, 7.1847, 34.9176)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31A2 #75A231
analogous
#313CA2 #5E31A2 #9731A2
triadic
#5E31A2 #A25E31 #31A25E
tetradic
#5E31A2 #A2313C #75A231 #31A297
square
#5E31A2 #A2313C #75A231 #31A297
split-complementary
#5E31A2 #A29731 #3CA231
monochromatic
#271544 #432373 #5E31A2 #7B48C8 #9D77D6

Accessibility & contrast

On white

8.62
#5E31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5E31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31A2
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31A2#FFFFFF#000000##FFFFFF
##5E31A21.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4D4C66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e31a2;
/* rgb */ color: rgb(94, 49, 162);
/* oklch */ color: oklch(43.5% 0.172 296.9);
Tailwind
colors: {
  custom: {
    50: '#916dbe',
    500: '#5e31a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e31a2;
$custom-light: #916dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31a2",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 263.894,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43536,
    "c": 0.17211,
    "h": 296.9
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#5E31A2
secondary
#9FBE71
accent
#DD4BA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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