#5E40BB#5E40BB

#5E40BB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.183 H 288.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5E40BB
RGBrgb(94, 64, 187)
HSLhsl(255, 49%, 49%)
HSVhsv(255, 66%, 73%)
CMYKcmyk(49.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(37.18, 43.47, -60.58)
CIE-LCHlch(37.18, 74.57, 305.66°)
OKLaboklab(47.71% 0.0587 -0.1737)
OKLCHoklch(47.71% 0.183 288.7)
XYZxyz(15.4165, 9.6337, 48.0512)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40BB #9DBB40
analogous
#4060BB #5E40BB #9C40BB
triadic
#5E40BB #BB5E40 #40BB5E
tetradic
#5E40BB #BB4060 #9DBB40 #40BB9C
square
#5E40BB #BB4060 #9DBB40 #40BB9C
split-complementary
#5E40BB #BB9C40 #60BB40
monochromatic
#302160 #47308D #5E40BB #836CCD #AA99DC

Accessibility & contrast

On white

7.18
#5E40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5E40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E40BB
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40BB#FFFFFF#000000##FFFFFF
##5E40BB1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#3E5E78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e40bb;
/* rgb */ color: rgb(94, 64, 187);
/* oklch */ color: oklch(47.7% 0.183 288.7);
Tailwind
colors: {
  custom: {
    50: '#9477d0',
    500: '#5e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e40bb;
$custom-light: #9477d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40bb",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 254.634,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47712,
    "c": 0.18333,
    "h": 288.7
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#5E40BB
secondary
#BAC88F
accent
#D94FB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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