#5E42E6#5E42E6

#5E42E6 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.233 H 282.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5E42E6
RGBrgb(94, 66, 230)
HSLhsl(250, 77%, 58%)
HSVhsv(250, 71%, 90%)
CMYKcmyk(59.1%, 71.3%, 0%, 9.8%)
CIE-LABlab(41.20, 54.98, -78.84)
CIE-LCHlch(41.20, 96.12, 304.89°)
OKLaboklab(51.71% 0.0499 -0.2272)
OKLCHoklch(51.71% 0.233 282.4)
XYZxyz(20.8428, 11.9879, 76.0631)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42E6 #CAE642
analogous
#4278E6 #5E42E6 #B042E6
triadic
#5E42E6 #E65E42 #42E65E
tetradic
#5E42E6 #E64278 #CAE642 #42E6B0
square
#5E42E6 #E64278 #CAE642 #42E6B0
split-complementary
#5E42E6 #E6B042 #78E642
monochromatic
#2B1499 #3A1BCF #5E42E6 #8C78ED #BAAEF4

Accessibility & contrast

On white

6.18
#5E42E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5E42E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42E6
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42E6#FFFFFF#000000##FFFFFF
##5E42E61.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EB
Deuteranopia (green-blind)
#005BE3
Tritanopia (blue-blind)
#006F90
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5e42e6;
/* rgb */ color: rgb(94, 66, 230);
/* oklch */ color: oklch(51.7% 0.233 282.4);
Tailwind
colors: {
  custom: {
    50: '#9a79ef',
    500: '#5e42e6',
    950: '#000000',
  },
}
SCSS
$custom: #5e42e6;
$custom-light: #9a79ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42e6",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 230
  },
  "hsl": {
    "h": 250.244,
    "s": 76.636,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51706,
    "c": 0.23264,
    "h": 282.4
  },
  "luminance": 0.11989
}

Semantic roles & 50–950 ramp

primary
#5E42E6
secondary
#D7E3A1
accent
#F335D3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5E42E6

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

Preview Lab → · Contrast checker → · Palette generator →

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