#5E42E7#5E42E7

#5E42E7 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.234 H 282.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5E42E7
RGBrgb(94, 66, 231)
HSLhsl(250, 77%, 58%)
HSVhsv(250, 71%, 91%)
CMYKcmyk(59.3%, 71.4%, 0%, 9.4%)
CIE-LABlab(41.29, 55.27, -79.27)
CIE-LCHlch(41.29, 96.63, 304.89°)
OKLaboklab(51.8% 0.0497 -0.2285)
OKLCHoklch(51.8% 0.234 282.3)
XYZxyz(20.9836, 12.0442, 76.8048)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42E7 #CBE742
analogous
#4278E7 #5E42E7 #B142E7
triadic
#5E42E7 #E75E42 #42E75E
tetradic
#5E42E7 #E74278 #CBE742 #42E7B1
square
#5E42E7 #E74278 #CBE742 #42E7B1
split-complementary
#5E42E7 #E7B142 #78E742
monochromatic
#2B149B #3A1BD1 #5E42E7 #8C78EE #BBAFF5

Accessibility & contrast

On white

6.16
#5E42E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5E42E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42E7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42E7#FFFFFF#000000##FFFFFF
##5E42E71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#006F91
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5e42e7;
/* rgb */ color: rgb(94, 66, 231);
/* oklch */ color: oklch(51.8% 0.234 282.3);
Tailwind
colors: {
  custom: {
    50: '#9a79f0',
    500: '#5e42e7',
    950: '#000000',
  },
}
SCSS
$custom: #5e42e7;
$custom-light: #9a79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42e7",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 250.182,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51797,
    "c": 0.2338,
    "h": 282.3
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#5E42E7
secondary
#D8E3A2
accent
#F434D3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5E42E7

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

Preview Lab → · Contrast checker → · Palette generator →

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