#5E40BF#5E40BF

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

Color values

HEX#5E40BF
RGBrgb(94, 64, 191)
HSLhsl(254, 50%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(50.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.49, 44.64, -62.42)
CIE-LCHlch(37.49, 76.73, 305.57°)
OKLaboklab(48.04% 0.0582 -0.179)
OKLCHoklch(48.04% 0.188 288)
XYZxyz(15.8507, 9.8073, 50.3379)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40BF #A1BF40
analogous
#4062BF #5E40BF #9D40BF
triadic
#5E40BF #BF5E40 #40BF5E
tetradic
#5E40BF #BF4062 #A1BF40 #40BF9D
square
#5E40BF #BF4062 #A1BF40 #40BF9D
split-complementary
#5E40BF #BF9D40 #62BF40
monochromatic
#312163 #473191 #5E40BF #856ECE #AB9CDE

Accessibility & contrast

On white

7.09
#5E40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5E40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E40BF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40BF#FFFFFF#000000##FFFFFF
##5E40BF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#3B607A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e40bf;
/* rgb */ color: rgb(94, 64, 191);
/* oklch */ color: oklch(48.0% 0.188 288.0);
Tailwind
colors: {
  custom: {
    50: '#9477d3',
    500: '#5e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #5e40bf;
$custom-light: #9477d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40bf",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 254.173,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.4804,
    "c": 0.18828,
    "h": 288
  },
  "luminance": 0.09808
}

Semantic roles & 50–950 ramp

primary
#5E40BF
secondary
#BCCA91
accent
#D94EB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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