#5C40BD#5C40BD

#5C40BD is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.186 H 287.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5C40BD
RGBrgb(92, 64, 189)
HSLhsl(253, 49%, 50%)
HSVhsv(253, 66%, 74%)
CMYKcmyk(51.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(37.14, 43.69, -61.82)
CIE-LCHlch(37.14, 75.70, 305.25°)
OKLaboklab(47.69% 0.0557 -0.1774)
OKLCHoklch(47.69% 0.186 287.4)
XYZxyz(15.4296, 9.6155, 49.1772)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40BD #A1BD40
analogous
#4063BD #5C40BD #9B40BD
triadic
#5C40BD #BD5C40 #40BD5C
tetradic
#5C40BD #BD4063 #A1BD40 #40BD9B
square
#5C40BD #BD4063 #A1BD40 #40BD9B
split-complementary
#5C40BD #BD9B40 #63BD40
monochromatic
#2F2162 #46318F #5C40BD #826DCD #A99ADD

Accessibility & contrast

On white

7.18
#5C40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5C40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C40BD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40BD#FFFFFF#000000##FFFFFF
##5C40BD1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#385F79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c40bd;
/* rgb */ color: rgb(92, 64, 189);
/* oklch */ color: oklch(47.7% 0.186 287.4);
Tailwind
colors: {
  custom: {
    50: '#9377d2',
    500: '#5c40bd',
    950: '#000000',
  },
}
SCSS
$custom: #5c40bd;
$custom-light: #9377d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40bd",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 253.44,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47691,
    "c": 0.18592,
    "h": 287.4
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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