#5E31CA#5E31CA

#5E31CA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.218 H 288.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5E31CA
RGBrgb(94, 49, 202)
HSLhsl(258, 61%, 49%)
HSVhsv(258, 76%, 79%)
CMYKcmyk(53.5%, 75.7%, 0%, 20.8%)
CIE-LABlab(35.67, 55.47, -71.82)
CIE-LCHlch(35.67, 90.75, 307.68°)
OKLaboklab(47.04% 0.0688 -0.2066)
OKLCHoklch(47.04% 0.218 288.4)
XYZxyz(16.3719, 8.8398, 56.7092)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31CA #9DCA31
analogous
#3151CA #5E31CA #AB31CA
triadic
#5E31CA #CA5E31 #31CA5E
tetradic
#5E31CA #CA3151 #9DCA31 #31CAAB
square
#5E31CA #CA3151 #9DCA31 #31CAAB
split-complementary
#5E31CA #CAAB31 #51CA31
monochromatic
#301967 #472599 #5E31CA #8360D8 #AA91E4

Accessibility & contrast

On white

7.59
#5E31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5E31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31CA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31CA#FFFFFF#000000##FFFFFF
##5E31CA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#335C7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e31ca;
/* rgb */ color: rgb(94, 49, 202);
/* oklch */ color: oklch(47.0% 0.218 288.4);
Tailwind
colors: {
  custom: {
    50: '#976edb',
    500: '#5e31ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e31ca;
$custom-light: #976edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31ca",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 257.647,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.21773,
    "h": 288.4
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#5E31CA
secondary
#BACF88
accent
#E444B5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5E31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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