#5D40BE#5D40BE

#5D40BE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.187 H 287.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5D40BE
RGBrgb(93, 64, 190)
HSLhsl(254, 50%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(51.1%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.32, 44.16, -62.12)
CIE-LCHlch(37.32, 76.22, 305.41°)
OKLaboklab(47.87% 0.057 -0.1782)
OKLCHoklch(47.87% 0.187 287.7)
XYZxyz(15.6391, 9.7109, 49.7556)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40BE #A1BE40
analogous
#4062BE #5D40BE #9C40BE
triadic
#5D40BE #BE5D40 #40BE5D
tetradic
#5D40BE #BE4062 #A1BE40 #40BE9C
square
#5D40BE #BE4062 #A1BE40 #40BE9C
split-complementary
#5D40BE #BE9C40 #62BE40
monochromatic
#302162 #473190 #5D40BE #846DCE #AA9BDD

Accessibility & contrast

On white

7.14
#5D40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D40BE
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40BE#FFFFFF#000000##FFFFFF
##5D40BE1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#395F79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d40be;
/* rgb */ color: rgb(93, 64, 190);
/* oklch */ color: oklch(47.9% 0.187 287.7);
Tailwind
colors: {
  custom: {
    50: '#9377d3',
    500: '#5d40be',
    950: '#000000',
  },
}
SCSS
$custom: #5d40be;
$custom-light: #9377d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40be",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 253.81,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47866,
    "c": 0.1871,
    "h": 287.7
  },
  "luminance": 0.09712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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