#5C40BB#5C40BB

#5C40BB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.183 H 287.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5C40BB
RGBrgb(92, 64, 187)
HSLhsl(254, 49%, 49%)
HSVhsv(254, 66%, 73%)
CMYKcmyk(50.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(36.98, 43.10, -60.91)
CIE-LCHlch(36.98, 74.61, 305.29°)
OKLaboklab(47.53% 0.056 -0.1747)
OKLCHoklch(47.53% 0.183 287.8)
XYZxyz(15.2140, 9.5293, 48.0418)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40BB #9FBB40
analogous
#4061BB #5C40BB #9A40BB
triadic
#5C40BB #BB5C40 #40BB5C
tetradic
#5C40BB #BB4061 #9FBB40 #40BB9A
square
#5C40BB #BB4061 #9FBB40 #40BB9A
split-complementary
#5C40BB #BB9A40 #61BB40
monochromatic
#2F2160 #46308D #5C40BB #826CCD #A899DC

Accessibility & contrast

On white

7.23
#5C40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5C40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C40BB
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40BB#FFFFFF#000000##FFFFFF
##5C40BB1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#395E78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c40bb;
/* rgb */ color: rgb(92, 64, 187);
/* oklch */ color: oklch(47.5% 0.183 287.8);
Tailwind
colors: {
  custom: {
    50: '#9277d0',
    500: '#5c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c40bb;
$custom-light: #9277d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40bb",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 253.659,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47527,
    "c": 0.18343,
    "h": 287.8
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#5C40BB
secondary
#BBC88F
accent
#D94FB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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