#5E42E0#5E42E0

#5E42E0 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.226 H 283.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5E42E0
RGBrgb(94, 66, 224)
HSLhsl(251, 72%, 57%)
HSVhsv(251, 71%, 88%)
CMYKcmyk(58%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.67, 53.22, -76.30)
CIE-LCHlch(40.67, 93.03, 304.90°)
OKLaboklab(51.17% 0.0511 -0.2198)
OKLCHoklch(51.17% 0.226 283.1)
XYZxyz(20.0147, 11.6566, 71.7018)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42E0 #C4E042
analogous
#4275E0 #5E42E0 #AD42E0
triadic
#5E42E0 #E05E42 #42E05E
tetradic
#5E42E0 #E04275 #C4E042 #42E0AD
square
#5E42E0 #E04275 #C4E042 #42E0AD
split-complementary
#5E42E0 #E0AD42 #75E042
monochromatic
#2D1890 #3D20C5 #5E42E0 #8B77E9 #B8ABF1

Accessibility & contrast

On white

6.30
#5E42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5E42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42E0
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42E0#FFFFFF#000000##FFFFFF
##5E42E01.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#005ADD
Tritanopia (blue-blind)
#0A6D8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e42e0;
/* rgb */ color: rgb(94, 66, 224);
/* oklch */ color: oklch(51.2% 0.226 283.1);
Tailwind
colors: {
  custom: {
    50: '#9979eb',
    500: '#5e42e0',
    950: '#000000',
  },
}
SCSS
$custom: #5e42e0;
$custom-light: #9979eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42e0",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 250.633,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.22564,
    "h": 283.1
  },
  "luminance": 0.11658
}

Semantic roles & 50–950 ramp

primary
#5E42E0
secondary
#D4DF9F
accent
#EF39CE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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