#5C40D7#5C40D7

#5C40D7 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.9% C 0.217 H 283.7°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5C40D7
RGBrgb(92, 64, 215)
HSLhsl(251, 65%, 55%)
HSVhsv(251, 70%, 84%)
CMYKcmyk(57.2%, 70.2%, 0%, 15.7%)
CIE-LABlab(39.32, 51.36, -73.36)
CIE-LCHlch(39.32, 89.55, 304.99°)
OKLaboklab(49.93% 0.0516 -0.2112)
OKLCHoklch(49.93% 0.217 283.7)
XYZxyz(18.5090, 10.8472, 65.3952)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40D7 #BBD740
analogous
#406FD7 #5C40D7 #A840D7
triadic
#5C40D7 #D75C40 #40D75C
tetradic
#5C40D7 #D7406F #BBD740 #40D7A8
square
#5C40D7 #D7406F #BBD740 #40D7A8
split-complementary
#5C40D7 #D7A840 #6FD740
monochromatic
#2E1B81 #4026B4 #5C40D7 #8773E2 #B2A5EC

Accessibility & contrast

On white

6.63
#5C40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5C40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40D7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40D7#FFFFFF#000000##FFFFFF
##5C40D71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DB
Deuteranopia (green-blind)
#0058D4
Tritanopia (blue-blind)
#186887
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5c40d7;
/* rgb */ color: rgb(92, 64, 215);
/* oklch */ color: oklch(49.9% 0.217 283.7);
Tailwind
colors: {
  custom: {
    50: '#9777e5',
    500: '#5c40d7',
    950: '#000000',
  },
}
SCSS
$custom: #5c40d7;
$custom-light: #9777e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40d7",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 251.126,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.21742,
    "h": 283.7
  },
  "luminance": 0.10848
}

Semantic roles & 50–950 ramp

primary
#5C40D7
secondary
#CDD99A
accent
#E83FC9
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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