#5E31B7#5E31B7

#5E31B7 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.196 H 292.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5E31B7
RGBrgb(94, 49, 183)
HSLhsl(260, 58%, 45%)
HSVhsv(260, 73%, 72%)
CMYKcmyk(48.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(33.97, 50.28, -63.46)
CIE-LCHlch(33.97, 80.96, 308.39°)
OKLaboklab(45.32% 0.0736 -0.1821)
OKLCHoklch(45.32% 0.196 292)
XYZxyz(14.2592, 7.9947, 45.5824)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31B7 #8AB731
analogous
#3147B7 #5E31B7 #A131B7
triadic
#5E31B7 #B75E31 #31B75E
tetradic
#5E31B7 #B73147 #8AB731 #31B7A1
square
#5E31B7 #B73147 #8AB731 #31B7A1
split-complementary
#5E31B7 #B7A131 #47B731
monochromatic
#2C1756 #452487 #5E31B7 #7E54D1 #A284DE

Accessibility & contrast

On white

8.08
#5E31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5E31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31B7
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31B7#FFFFFF#000000##FFFFFF
##5E31B71.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#415471
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e31b7;
/* rgb */ color: rgb(94, 49, 183);
/* oklch */ color: oklch(45.3% 0.196 292.0);
Tailwind
colors: {
  custom: {
    50: '#946dce',
    500: '#5e31b7',
    950: '#000000',
  },
}
SCSS
$custom: #5e31b7;
$custom-light: #946dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31b7",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 260.149,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4532,
    "c": 0.19636,
    "h": 292
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#5E31B7
secondary
#AEC87C
accent
#E147AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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