#5E40BE#5E40BE

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

Color values

HEX#5E40BE
RGBrgb(94, 64, 190)
HSLhsl(254, 50%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(50.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.41, 44.34, -61.96)
CIE-LCHlch(37.41, 76.19, 305.59°)
OKLaboklab(47.96% 0.0584 -0.1777)
OKLCHoklch(47.96% 0.187 288.2)
XYZxyz(15.7410, 9.7635, 49.7603)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40BE #A0BE40
analogous
#4061BE #5E40BE #9D40BE
triadic
#5E40BE #BE5E40 #40BE5E
tetradic
#5E40BE #BE4061 #A0BE40 #40BE9D
square
#5E40BE #BE4061 #A0BE40 #40BE9D
split-complementary
#5E40BE #BE9D40 #61BE40
monochromatic
#312162 #473190 #5E40BE #846DCE #AB9BDD

Accessibility & contrast

On white

7.11
#5E40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E40BE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40BE#FFFFFF#000000##FFFFFF
##5E40BE1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e40be;
/* rgb */ color: rgb(94, 64, 190);
/* oklch */ color: oklch(48.0% 0.187 288.2);
Tailwind
colors: {
  custom: {
    50: '#9477d3',
    500: '#5e40be',
    950: '#000000',
  },
}
SCSS
$custom: #5e40be;
$custom-light: #9477d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40be",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 254.286,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.18705,
    "h": 288.2
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#5E40BE
secondary
#BCC990
accent
#D94FB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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