#5E41DB#5E41DB

#5E41DB is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.221 H 283.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5E41DB
RGBrgb(94, 65, 219)
HSLhsl(251, 68%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.1%, 70.3%, 0%, 14.1%)
CIE-LABlab(40.04, 52.29, -74.48)
CIE-LCHlch(40.04, 91.00, 305.07°)
OKLaboklab(50.59% 0.0528 -0.2144)
OKLCHoklch(50.59% 0.221 283.8)
XYZxyz(19.2887, 11.2735, 68.1637)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41DB #BEDB41
analogous
#4171DB #5E41DB #AB41DB
triadic
#5E41DB #DB5E41 #41DB5E
tetradic
#5E41DB #DB4171 #BEDB41 #41DBAB
square
#5E41DB #DB4171 #BEDB41 #41DBAB
split-complementary
#5E41DB #DBAB41 #71DB41
monochromatic
#2E1A88 #4023BB #5E41DB #8A74E5 #B5A8EE

Accessibility & contrast

On white

6.45
#5E41DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5E41DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E41DB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41DB#FFFFFF#000000##FFFFFF
##5E41DB1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#196A8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e41db;
/* rgb */ color: rgb(94, 65, 219);
/* oklch */ color: oklch(50.6% 0.221 283.8);
Tailwind
colors: {
  custom: {
    50: '#9878e7',
    500: '#5e41db',
    950: '#000000',
  },
}
SCSS
$custom: #5e41db;
$custom-light: #9878e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41db",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 251.299,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50586,
    "c": 0.22083,
    "h": 283.8
  },
  "luminance": 0.11275
}

Semantic roles & 50–950 ramp

primary
#5E41DB
secondary
#D0DC9C
accent
#EB3DCA
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E41DB

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

Preview Lab → · Contrast checker → · Palette generator →

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