#5D40BF#5D40BF

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

Color values

HEX#5D40BF
RGBrgb(93, 64, 191)
HSLhsl(254, 50%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(51.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.40, 44.46, -62.58)
CIE-LCHlch(37.40, 76.76, 305.39°)
OKLaboklab(47.95% 0.0568 -0.1795)
OKLCHoklch(47.95% 0.188 287.6)
XYZxyz(15.7488, 9.7548, 50.3331)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40BF #A2BF40
analogous
#4062BF #5D40BF #9D40BF
triadic
#5D40BF #BF5D40 #40BF5D
tetradic
#5D40BF #BF4062 #A2BF40 #40BF9D
square
#5D40BF #BF4062 #A2BF40 #40BF9D
split-complementary
#5D40BF #BF9D40 #62BF40
monochromatic
#302163 #473191 #5D40BF #846ECE #AB9CDE

Accessibility & contrast

On white

7.12
#5D40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D40BF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40BF#FFFFFF#000000##FFFFFF
##5D40BF1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d40bf;
/* rgb */ color: rgb(93, 64, 191);
/* oklch */ color: oklch(47.9% 0.188 287.6);
Tailwind
colors: {
  custom: {
    50: '#9477d3',
    500: '#5d40bf',
    950: '#000000',
  },
}
SCSS
$custom: #5d40bf;
$custom-light: #9477d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40bf",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 253.701,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47948,
    "c": 0.18833,
    "h": 287.6
  },
  "luminance": 0.09756
}

Semantic roles & 50–950 ramp

primary
#5D40BF
secondary
#BDCA91
accent
#D94EBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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