#5E41D2#5E41D2

#5E41D2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.210 H 285.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5E41D2
RGBrgb(94, 65, 210)
HSLhsl(252, 62%, 54%)
HSVhsv(252, 69%, 82%)
CMYKcmyk(55.2%, 69%, 0%, 17.6%)
CIE-LABlab(39.26, 49.65, -70.57)
CIE-LCHlch(39.26, 86.29, 305.13°)
OKLaboklab(49.8% 0.0544 -0.203)
OKLCHoklch(49.8% 0.21 285)
XYZxyz(18.1357, 10.8124, 62.0916)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41D2 #B5D241
analogous
#416DD2 #5E41D2 #A741D2
triadic
#5E41D2 #D25E41 #41D25E
tetradic
#5E41D2 #D2416D #B5D241 #41D2A7
square
#5E41D2 #D2416D #B5D241 #41D2A7
split-complementary
#5E41D2 #D2A741 #6DD241
monochromatic
#301D7B #4329AD #5E41D2 #8872DE #B2A4E9

Accessibility & contrast

On white

6.64
#5E41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E41D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E41D2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41D2#FFFFFF#000000##FFFFFF
##5E41D21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#286785
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e41d2;
/* rgb */ color: rgb(94, 65, 210);
/* oklch */ color: oklch(49.8% 0.210 285.0);
Tailwind
colors: {
  custom: {
    50: '#9778e1',
    500: '#5e41d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e41d2;
$custom-light: #9778e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41d2",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 252,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49795,
    "c": 0.21015,
    "h": 285
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#5E41D2
secondary
#CAD698
accent
#E543C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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