#5E31BA#5E31BA

#5E31BA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.200 H 291.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5E31BA
RGBrgb(94, 49, 186)
HSLhsl(260, 58%, 46%)
HSVhsv(260, 74%, 73%)
CMYKcmyk(49.5%, 73.7%, 0%, 27.1%)
CIE-LABlab(34.23, 51.10, -64.80)
CIE-LCHlch(34.23, 82.53, 308.26°)
OKLaboklab(45.59% 0.0729 -0.186)
OKLCHoklch(45.59% 0.2 291.4)
XYZxyz(14.5748, 8.1209, 47.2444)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31BA #8DBA31
analogous
#3148BA #5E31BA #A231BA
triadic
#5E31BA #BA5E31 #31BA5E
tetradic
#5E31BA #BA3148 #8DBA31 #31BAA2
square
#5E31BA #BA3148 #8DBA31 #31BAA2
split-complementary
#5E31BA #BAA231 #48BA31
monochromatic
#2D1759 #46248A #5E31BA #7F56D2 #A386DF

Accessibility & contrast

On white

8.00
#5E31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5E31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31BA
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31BA#FFFFFF#000000##FFFFFF
##5E31BA1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#3F5673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e31ba;
/* rgb */ color: rgb(94, 49, 186);
/* oklch */ color: oklch(45.6% 0.200 291.4);
Tailwind
colors: {
  custom: {
    50: '#946ed0',
    500: '#5e31ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e31ba;
$custom-light: #946ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31ba",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 259.708,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.19976,
    "h": 291.4
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#5E31BA
secondary
#B0C97E
accent
#E246AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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