#5E41DC#5E41DC

#5E41DC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.7% C 0.222 H 283.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5E41DC
RGBrgb(94, 65, 220)
HSLhsl(251, 69%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.3%, 70.5%, 0%, 13.7%)
CIE-LABlab(40.12, 52.58, -74.90)
CIE-LCHlch(40.12, 91.52, 305.07°)
OKLaboklab(50.67% 0.0526 -0.2157)
OKLCHoklch(50.67% 0.222 283.7)
XYZxyz(19.4207, 11.3264, 68.8591)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41DC #BFDC41
analogous
#4171DC #5E41DC #AB41DC
triadic
#5E41DC #DC5E41 #41DC5E
tetradic
#5E41DC #DC4171 #BFDC41 #41DCAB
square
#5E41DC #DC4171 #BFDC41 #41DCAB
split-complementary
#5E41DC #DCAB41 #71DC41
monochromatic
#2E1989 #4023BD #5E41DC #8A75E6 #B6A8EF

Accessibility & contrast

On white

6.43
#5E41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5E41DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E41DC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41DC#FFFFFF#000000##FFFFFF
##5E41DC1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#176B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e41dc;
/* rgb */ color: rgb(94, 65, 220);
/* oklch */ color: oklch(50.7% 0.222 283.7);
Tailwind
colors: {
  custom: {
    50: '#9878e8',
    500: '#5e41dc',
    950: '#000000',
  },
}
SCSS
$custom: #5e41dc;
$custom-light: #9878e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41dc",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 251.226,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50674,
    "c": 0.22201,
    "h": 283.7
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#5E41DC
secondary
#D0DD9C
accent
#EC3CCB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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