#5E42D5#5E42D5

#5E42D5 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.213 H 284.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5E42D5
RGBrgb(94, 66, 213)
HSLhsl(251, 64%, 55%)
HSVhsv(251, 69%, 84%)
CMYKcmyk(55.9%, 69%, 0%, 16.5%)
CIE-LABlab(39.71, 49.99, -71.56)
CIE-LCHlch(39.71, 87.29, 304.94°)
OKLaboklab(50.2% 0.0531 -0.2059)
OKLCHoklch(50.2% 0.213 284.4)
XYZxyz(18.5709, 11.0791, 64.0978)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42D5 #B9D542
analogous
#426FD5 #5E42D5 #A842D5
triadic
#5E42D5 #D55E42 #42D55E
tetradic
#5E42D5 #D5426F #B9D542 #42D5A8
square
#5E42D5 #D5426F #B9D542 #42D5A8
split-complementary
#5E42D5 #D5A842 #6FD542
monochromatic
#2F1C80 #4228B2 #5E42D5 #8974E0 #B3A6EB

Accessibility & contrast

On white

6.53
#5E42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5E42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42D5
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42D5#FFFFFF#000000##FFFFFF
##5E42D51.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#246987
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e42d5;
/* rgb */ color: rgb(94, 66, 213);
/* oklch */ color: oklch(50.2% 0.213 284.4);
Tailwind
colors: {
  custom: {
    50: '#9779e3',
    500: '#5e42d5',
    950: '#000000',
  },
}
SCSS
$custom: #5e42d5;
$custom-light: #9779e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42d5",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 251.429,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50196,
    "c": 0.21262,
    "h": 284.4
  },
  "luminance": 0.1108
}

Semantic roles & 50–950 ramp

primary
#5E42D5
secondary
#CDD89A
accent
#E741C7
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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