#5C40E3#5C40E3

#5C40E3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.0% C 0.231 H 282.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5C40E3
RGBrgb(92, 64, 227)
HSLhsl(250, 74%, 57%)
HSVhsv(250, 72%, 89%)
CMYKcmyk(59.5%, 71.8%, 0%, 11%)
CIE-LABlab(40.39, 54.87, -78.47)
CIE-LCHlch(40.39, 95.76, 304.96°)
OKLaboklab(51.01% 0.0492 -0.2262)
OKLCHoklch(51.01% 0.231 282.3)
XYZxyz(20.1078, 11.4868, 73.8157)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40E3 #C7E340
analogous
#4075E3 #5C40E3 #AE40E3
triadic
#5C40E3 #E35C40 #40E35C
tetradic
#5C40E3 #E34075 #C7E340 #40E3AE
square
#5C40E3 #E34075 #C7E340 #40E3AE
split-complementary
#5C40E3 #E3AE40 #75E340
monochromatic
#2B1693 #3B1DC8 #5C40E3 #8A75EB #B7ABF3

Accessibility & contrast

On white

6.37
#5C40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5C40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40E3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40E3#FFFFFF#000000##FFFFFF
##5C40E31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#0059E0
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5c40e3;
/* rgb */ color: rgb(92, 64, 227);
/* oklch */ color: oklch(51.0% 0.231 282.3);
Tailwind
colors: {
  custom: {
    50: '#9978ed',
    500: '#5c40e3',
    950: '#000000',
  },
}
SCSS
$custom: #5c40e3;
$custom-light: #9978ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40e3",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 250.307,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51009,
    "c": 0.23148,
    "h": 282.3
  },
  "luminance": 0.11488
}

Semantic roles & 50–950 ramp

primary
#5C40E3
secondary
#D5E19E
accent
#F137D1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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