#5E31BC#5E31BC

#5E31BC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.202 H 291.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5E31BC
RGBrgb(94, 49, 188)
HSLhsl(259, 59%, 46%)
HSVhsv(259, 74%, 74%)
CMYKcmyk(50%, 73.9%, 0%, 26.3%)
CIE-LABlab(34.41, 51.65, -65.69)
CIE-LCHlch(34.41, 83.56, 308.17°)
OKLaboklab(45.76% 0.0724 -0.1886)
OKLCHoklch(45.76% 0.202 291)
XYZxyz(14.7889, 8.2066, 48.3720)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31BC #8FBC31
analogous
#314ABC #5E31BC #A431BC
triadic
#5E31BC #BC5E31 #31BC5E
tetradic
#5E31BC #BC314A #8FBC31 #31BCA4
square
#5E31BC #BC314A #8FBC31 #31BCA4
split-complementary
#5E31BC #BCA431 #4ABC31
monochromatic
#2D185B #46248B #5E31BC #7F57D3 #A488E0

Accessibility & contrast

On white

7.95
#5E31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31BC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31BC#FFFFFF#000000##FFFFFF
##5E31BC1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#3E5674
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e31bc;
/* rgb */ color: rgb(94, 49, 188);
/* oklch */ color: oklch(45.8% 0.202 291.0);
Tailwind
colors: {
  custom: {
    50: '#956ed1',
    500: '#5e31bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e31bc;
$custom-light: #956ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31bc",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 259.424,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45763,
    "c": 0.20203,
    "h": 291
  },
  "luminance": 0.08207
}

Semantic roles & 50–950 ramp

primary
#5E31BC
secondary
#B2CA7F
accent
#E246AF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5E31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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