#5E41E4#5E41E4

#5E41E4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.231 H 282.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5E41E4
RGBrgb(94, 65, 228)
HSLhsl(251, 75%, 57%)
HSVhsv(251, 71%, 89%)
CMYKcmyk(58.8%, 71.5%, 0%, 10.6%)
CIE-LABlab(40.83, 54.91, -78.31)
CIE-LCHlch(40.83, 95.64, 305.04°)
OKLaboklab(51.39% 0.051 -0.2256)
OKLCHoklch(51.39% 0.231 282.7)
XYZxyz(20.5056, 11.7603, 74.5732)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41E4 #C7E441
analogous
#4175E4 #5E41E4 #B041E4
triadic
#5E41E4 #E45E41 #41E45E
tetradic
#5E41E4 #E44175 #C7E441 #41E4B0
square
#5E41E4 #E44175 #C7E441 #41E4B0
split-complementary
#5E41E4 #E4B041 #75E441
monochromatic
#2C1595 #3C1DCB #5E41E4 #8B77EC #B9ACF3

Accessibility & contrast

On white

6.26
#5E41E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5E41E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E41E4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41E4#FFFFFF#000000##FFFFFF
##5E41E41.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E9
Deuteranopia (green-blind)
#005BE1
Tritanopia (blue-blind)
#006E8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e41e4;
/* rgb */ color: rgb(94, 65, 228);
/* oklch */ color: oklch(51.4% 0.231 282.7);
Tailwind
colors: {
  custom: {
    50: '#9a79ee',
    500: '#5e41e4',
    950: '#000000',
  },
}
SCSS
$custom: #5e41e4;
$custom-light: #9a79ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41e4",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 228
  },
  "hsl": {
    "h": 250.675,
    "s": 75.115,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51393,
    "c": 0.23134,
    "h": 282.7
  },
  "luminance": 0.11762
}

Semantic roles & 50–950 ramp

primary
#5E41E4
secondary
#D6E19F
accent
#F236D0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5E41E4

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

Preview Lab → · Contrast checker → · Palette generator →

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