#5E40BC#5E40BC

#5E40BC is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.185 H 288.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5E40BC
RGBrgb(94, 64, 188)
HSLhsl(255, 49%, 49%)
HSVhsv(255, 66%, 74%)
CMYKcmyk(50%, 66%, 0%, 26.3%)
CIE-LABlab(37.26, 43.76, -61.04)
CIE-LCHlch(37.26, 75.11, 305.64°)
OKLaboklab(47.79% 0.0586 -0.175)
OKLCHoklch(47.79% 0.185 288.5)
XYZxyz(15.5240, 9.6766, 48.6170)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40BC #9EBC40
analogous
#4060BC #5E40BC #9C40BC
triadic
#5E40BC #BC5E40 #40BC5E
tetradic
#5E40BC #BC4060 #9EBC40 #40BC9C
square
#5E40BC #BC4060 #9EBC40 #40BC9C
split-complementary
#5E40BC #BC9C40 #60BC40
monochromatic
#302161 #47308E #5E40BC #846CCD #AA9ADD

Accessibility & contrast

On white

7.15
#5E40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5E40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E40BC
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40BC#FFFFFF#000000##FFFFFF
##5E40BC1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#3D5E78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e40bc;
/* rgb */ color: rgb(94, 64, 188);
/* oklch */ color: oklch(47.8% 0.185 288.5);
Tailwind
colors: {
  custom: {
    50: '#9477d1',
    500: '#5e40bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e40bc;
$custom-light: #9477d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40bc",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 254.516,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47794,
    "c": 0.18458,
    "h": 288.5
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#5E40BC
secondary
#BBC98F
accent
#D94FB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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