#5C40BE#5C40BE

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

Color values

HEX#5C40BE
RGBrgb(92, 64, 190)
HSLhsl(253, 50%, 50%)
HSVhsv(253, 66%, 75%)
CMYKcmyk(51.6%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.22, 43.99, -62.28)
CIE-LCHlch(37.22, 76.25, 305.23°)
OKLaboklab(47.77% 0.0556 -0.1787)
OKLCHoklch(47.77% 0.187 287.3)
XYZxyz(15.5386, 9.6591, 49.7508)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40BE #A2BE40
analogous
#4063BE #5C40BE #9B40BE
triadic
#5C40BE #BE5C40 #40BE5C
tetradic
#5C40BE #BE4063 #A2BE40 #40BE9B
square
#5C40BE #BE4063 #A2BE40 #40BE9B
split-complementary
#5C40BE #BE9B40 #63BE40
monochromatic
#302162 #463190 #5C40BE #836DCE #AA9BDD

Accessibility & contrast

On white

7.16
#5C40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5C40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C40BE
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40BE#FFFFFF#000000##FFFFFF
##5C40BE1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c40be;
/* rgb */ color: rgb(92, 64, 190);
/* oklch */ color: oklch(47.8% 0.187 287.3);
Tailwind
colors: {
  custom: {
    50: '#9377d3',
    500: '#5c40be',
    950: '#000000',
  },
}
SCSS
$custom: #5c40be;
$custom-light: #9377d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40be",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 253.333,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47774,
    "c": 0.18716,
    "h": 287.3
  },
  "luminance": 0.0966
}

Semantic roles & 50–950 ramp

primary
#5C40BE
secondary
#BDC990
accent
#D94FBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5C40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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