#5E31F6#5E31F6

#5E31F6 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.3% C 0.265 H 282.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5E31F6
RGBrgb(94, 49, 246)
HSLhsl(254, 92%, 58%)
HSVhsv(254, 80%, 96%)
CMYKcmyk(61.8%, 80.1%, 0%, 3.5%)
CIE-LABlab(39.96, 67.37, -89.92)
CIE-LCHlch(39.96, 112.36, 306.84°)
OKLaboklab(51.3% 0.0559 -0.2594)
OKLCHoklch(51.3% 0.265 282.2)
XYZxyz(22.3438, 11.2285, 88.1608)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31F6 #C9F631
analogous
#3166F6 #5E31F6 #C131F6
triadic
#5E31F6 #F65E31 #31F65E
tetradic
#5E31F6 #F63166 #C9F631 #31F6C1
square
#5E31F6 #F63166 #C9F631 #31F6C1
split-complementary
#5E31F6 #F6C131 #66F631
monochromatic
#2B07A5 #3B0AE0 #5E31F6 #8C6CF9 #BAA6FB

Accessibility & contrast

On white

6.47
#5E31F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5E31F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E31F6
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31F6#FFFFFF#000000##FFFFFF
##5E31F61.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064FB
Deuteranopia (green-blind)
#0057F3
Tritanopia (blue-blind)
#006E95
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e31f6;
/* rgb */ color: rgb(94, 49, 246);
/* oklch */ color: oklch(51.3% 0.265 282.2);
Tailwind
colors: {
  custom: {
    50: '#9e71fb',
    500: '#5e31f6',
    950: '#000000',
  },
}
SCSS
$custom: #5e31f6;
$custom-light: #9e71fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31f6",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 246
  },
  "hsl": {
    "h": 253.706,
    "s": 91.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.513,
    "c": 0.26537,
    "h": 282.2
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#5E31F6
secondary
#D7E99A
accent
#FF29CE
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86

Preview Lab

Preview with #5E31F6

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

Preview Lab → · Contrast checker → · Palette generator →

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