#5E42E4#5E42E4

#5E42E4 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.230 H 282.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5E42E4
RGBrgb(94, 66, 228)
HSLhsl(250, 75%, 58%)
HSVhsv(250, 71%, 89%)
CMYKcmyk(58.8%, 71.1%, 0%, 10.6%)
CIE-LABlab(41.02, 54.39, -78.00)
CIE-LCHlch(41.02, 95.09, 304.89°)
OKLaboklab(51.53% 0.0503 -0.2248)
OKLCHoklch(51.53% 0.23 282.6)
XYZxyz(20.5636, 11.8762, 74.5925)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42E4 #C8E442
analogous
#4277E4 #5E42E4 #AF42E4
triadic
#5E42E4 #E45E42 #42E45E
tetradic
#5E42E4 #E44277 #C8E442 #42E4AF
square
#5E42E4 #E44277 #C8E442 #42E4AF
split-complementary
#5E42E4 #E4AF42 #77E442
monochromatic
#2C1596 #3B1DCC #5E42E4 #8C78EC #B9ADF3

Accessibility & contrast

On white

6.22
#5E42E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5E42E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42E4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42E4#FFFFFF#000000##FFFFFF
##5E42E41.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e42e4;
/* rgb */ color: rgb(94, 66, 228);
/* oklch */ color: oklch(51.5% 0.230 282.6);
Tailwind
colors: {
  custom: {
    50: '#9a79ee',
    500: '#5e42e4',
    950: '#000000',
  },
}
SCSS
$custom: #5e42e4;
$custom-light: #9a79ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42e4",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 250.37,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51526,
    "c": 0.23032,
    "h": 282.6
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#5E42E4
secondary
#D6E2A0
accent
#F236D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5E42E4

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

Preview Lab → · Contrast checker → · Palette generator →

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