#5C40BF#5C40BF

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

Color values

HEX#5C40BF
RGBrgb(92, 64, 191)
HSLhsl(253, 50%, 50%)
HSVhsv(253, 66%, 75%)
CMYKcmyk(51.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.30, 44.28, -62.73)
CIE-LCHlch(37.30, 76.79, 305.22°)
OKLaboklab(47.86% 0.0555 -0.18)
OKLCHoklch(47.86% 0.188 287.1)
XYZxyz(15.6482, 9.7029, 50.3284)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40BF #A3BF40
analogous
#4064BF #5C40BF #9B40BF
triadic
#5C40BF #BF5C40 #40BF5C
tetradic
#5C40BF #BF4064 #A3BF40 #40BF9B
square
#5C40BF #BF4064 #A3BF40 #40BF9B
split-complementary
#5C40BF #BF9B40 #64BF40
monochromatic
#302163 #463191 #5C40BF #836ECE #AA9CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C40BF#FFFFFF#000000##FFFFFF
##5C40BF1.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)
#005BC3
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#36607A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c40bf;
/* rgb */ color: rgb(92, 64, 191);
/* oklch */ color: oklch(47.9% 0.188 287.1);
Tailwind
colors: {
  custom: {
    50: '#9377d3',
    500: '#5c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #5c40bf;
$custom-light: #9377d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40bf",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 253.228,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47857,
    "c": 0.1884,
    "h": 287.1
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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