#5E41D8#5E41D8

#5E41D8 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.217 H 284.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5E41D8
RGBrgb(94, 65, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 70%, 85%)
CMYKcmyk(56.5%, 69.9%, 0%, 15.3%)
CIE-LABlab(39.78, 51.41, -73.18)
CIE-LCHlch(39.78, 89.43, 305.09°)
OKLaboklab(50.32% 0.0533 -0.2106)
OKLCHoklch(50.32% 0.217 284.2)
XYZxyz(18.8973, 11.1170, 66.1025)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41D8 #BBD841
analogous
#4170D8 #5E41D8 #A941D8
triadic
#5E41D8 #D85E41 #41D85E
tetradic
#5E41D8 #D84170 #BBD841 #41D8A9
square
#5E41D8 #D84170 #BBD841 #41D8A9
split-complementary
#5E41D8 #D8A941 #70D841
monochromatic
#2F1B84 #4125B6 #5E41D8 #8974E2 #B4A7ED

Accessibility & contrast

On white

6.51
#5E41D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E41D8
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41D8#FFFFFF#000000##FFFFFF
##5E41D81.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#1F6988
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e41d8;
/* rgb */ color: rgb(94, 65, 216);
/* oklch */ color: oklch(50.3% 0.217 284.2);
Tailwind
colors: {
  custom: {
    50: '#9878e5',
    500: '#5e41d8',
    950: '#000000',
  },
}
SCSS
$custom: #5e41d8;
$custom-light: #9878e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41d8",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 251.523,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5032,
    "c": 0.21729,
    "h": 284.2
  },
  "luminance": 0.11118
}

Semantic roles & 50–950 ramp

primary
#5E41D8
secondary
#CEDA9B
accent
#E93FC8
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E41D8

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

Preview Lab → · Contrast checker → · Palette generator →

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