#5E41BD#5E41BD

#5E41BD is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.185 H 288.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5E41BD
RGBrgb(94, 65, 189)
HSLhsl(254, 49%, 50%)
HSVhsv(254, 66%, 74%)
CMYKcmyk(50.3%, 65.6%, 0%, 25.9%)
CIE-LABlab(37.54, 43.49, -61.16)
CIE-LCHlch(37.54, 75.05, 305.41°)
OKLaboklab(48.03% 0.0575 -0.1754)
OKLCHoklch(48.03% 0.185 288.2)
XYZxyz(15.6890, 9.8337, 49.2057)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41BD #A0BD41
analogous
#4162BD #5E41BD #9C41BD
triadic
#5E41BD #BD5E41 #41BD5E
tetradic
#5E41BD #BD4162 #A0BD41 #41BD9C
square
#5E41BD #BD4162 #A0BD41 #41BD9C
split-complementary
#5E41BD #BD9C41 #62BD41
monochromatic
#312262 #47318F #5E41BD #846ECD #AB9CDD

Accessibility & contrast

On white

7.08
#5E41BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5E41BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E41BD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41BD#FFFFFF#000000##FFFFFF
##5E41BD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#3C5F79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e41bd;
/* rgb */ color: rgb(94, 65, 189);
/* oklch */ color: oklch(48.0% 0.185 288.2);
Tailwind
colors: {
  custom: {
    50: '#9477d2',
    500: '#5e41bd',
    950: '#000000',
  },
}
SCSS
$custom: #5e41bd;
$custom-light: #9477d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41bd",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 254.032,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48025,
    "c": 0.18457,
    "h": 288.2
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#5E41BD
secondary
#BCC991
accent
#D84FB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E41BD

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

Preview Lab → · Contrast checker → · Palette generator →

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