#5E42D8#5E42D8

#5E42D8 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.216 H 284.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5E42D8
RGBrgb(94, 66, 216)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 69%, 85%)
CMYKcmyk(56.5%, 69.4%, 0%, 15.3%)
CIE-LABlab(39.97, 50.87, -72.87)
CIE-LCHlch(39.97, 88.87, 304.92°)
OKLaboklab(50.46% 0.0525 -0.2097)
OKLCHoklch(50.46% 0.216 284.1)
XYZxyz(18.9552, 11.2328, 66.1218)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42D8 #BCD842
analogous
#4271D8 #5E42D8 #A942D8
triadic
#5E42D8 #D85E42 #42D85E
tetradic
#5E42D8 #D84271 #BCD842 #42D8A9
square
#5E42D8 #D84271 #BCD842 #42D8A9
split-complementary
#5E42D8 #D8A942 #71D842
monochromatic
#2F1B84 #4126B7 #5E42D8 #8975E2 #B4A7ED

Accessibility & contrast

On white

6.47
#5E42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5E42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42D8
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42D8#FFFFFF#000000##FFFFFF
##5E42D81.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#1F6A88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e42d8;
/* rgb */ color: rgb(94, 66, 216);
/* oklch */ color: oklch(50.5% 0.216 284.1);
Tailwind
colors: {
  custom: {
    50: '#9879e5',
    500: '#5e42d8',
    950: '#000000',
  },
}
SCSS
$custom: #5e42d8;
$custom-light: #9879e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42d8",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 251.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.2162,
    "h": 284.1
  },
  "luminance": 0.11234
}

Semantic roles & 50–950 ramp

primary
#5E42D8
secondary
#CFDA9C
accent
#E93FC9
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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