#5E42DC#5E42DC

#5E42DC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.221 H 283.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5E42DC
RGBrgb(94, 66, 220)
HSLhsl(251, 69%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.3%, 70%, 0%, 13.7%)
CIE-LABlab(40.32, 52.05, -74.59)
CIE-LCHlch(40.32, 90.96, 304.91°)
OKLaboklab(50.81% 0.0518 -0.2148)
OKLCHoklch(50.81% 0.221 283.6)
XYZxyz(19.4786, 11.4422, 68.8784)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42DC #C0DC42
analogous
#4273DC #5E42DC #AB42DC
triadic
#5E42DC #DC5E42 #42DC5E
tetradic
#5E42DC #DC4273 #C0DC42 #42DCAB
square
#5E42DC #DC4273 #C0DC42 #42DCAB
split-complementary
#5E42DC #DCAB42 #73DC42
monochromatic
#2E1A8A #3F23BE #5E42DC #8A76E6 #B6A9EF

Accessibility & contrast

On white

6.39
#5E42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5E42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42DC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42DC#FFFFFF#000000##FFFFFF
##5E42DC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#176B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e42dc;
/* rgb */ color: rgb(94, 66, 220);
/* oklch */ color: oklch(50.8% 0.221 283.6);
Tailwind
colors: {
  custom: {
    50: '#9879e8',
    500: '#5e42dc',
    950: '#000000',
  },
}
SCSS
$custom: #5e42dc;
$custom-light: #9879e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42dc",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 250.909,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.22094,
    "h": 283.6
  },
  "luminance": 0.11443
}

Semantic roles & 50–950 ramp

primary
#5E42DC
secondary
#D1DD9D
accent
#EC3CCC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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