#5E42E2#5E42E2

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

Color values

HEX#5E42E2
RGBrgb(94, 66, 226)
HSLhsl(251, 73%, 57%)
HSVhsv(251, 71%, 89%)
CMYKcmyk(58.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.84, 53.81, -77.15)
CIE-LCHlch(40.84, 94.06, 304.89°)
OKLaboklab(51.35% 0.0507 -0.2223)
OKLCHoklch(51.35% 0.228 282.8)
XYZxyz(20.2875, 11.7658, 73.1387)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42E2 #C6E242
analogous
#4276E2 #5E42E2 #AE42E2
triadic
#5E42E2 #E25E42 #42E25E
tetradic
#5E42E2 #E24276 #C6E242 #42E2AE
square
#5E42E2 #E24276 #C6E242 #42E2AE
split-complementary
#5E42E2 #E2AE42 #76E242
monochromatic
#2C1793 #3C1FC8 #5E42E2 #8B77EA #B8ACF2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E42E2#FFFFFF#000000##FFFFFF
##5E42E21.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)
#0065E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#016D8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e42e2;
/* rgb */ color: rgb(94, 66, 226);
/* oklch */ color: oklch(51.3% 0.228 282.8);
Tailwind
colors: {
  custom: {
    50: '#9979ec',
    500: '#5e42e2',
    950: '#000000',
  },
}
SCSS
$custom: #5e42e2;
$custom-light: #9979ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42e2",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 250.5,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51345,
    "c": 0.22798,
    "h": 282.8
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#5E42E2
secondary
#D5E09F
accent
#F038D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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