#5C40E8#5C40E8

#5C40E8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.237 H 281.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5C40E8
RGBrgb(92, 64, 232)
HSLhsl(250, 79%, 58%)
HSVhsv(250, 72%, 91%)
CMYKcmyk(60.3%, 72.4%, 0%, 9%)
CIE-LABlab(40.84, 56.33, -80.57)
CIE-LCHlch(40.84, 98.31, 304.96°)
OKLaboklab(51.47% 0.0482 -0.2323)
OKLCHoklch(51.47% 0.237 281.7)
XYZxyz(20.8080, 11.7668, 77.5030)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40E8 #CCE840
analogous
#4078E8 #5C40E8 #B040E8
triadic
#5C40E8 #E85C40 #40E85C
tetradic
#5C40E8 #E84078 #CCE840 #40E8B0
square
#5C40E8 #E84078 #CCE840 #40E8B0
split-complementary
#5C40E8 #E8B040 #78E840
monochromatic
#29139B #3819D2 #5C40E8 #8B77EF #B9ADF5

Accessibility & contrast

On white

6.26
#5C40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5C40E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40E8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40E8#FFFFFF#000000##FFFFFF
##5C40E81.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066ED
Deuteranopia (green-blind)
#005AE5
Tritanopia (blue-blind)
#006F91
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5c40e8;
/* rgb */ color: rgb(92, 64, 232);
/* oklch */ color: oklch(51.5% 0.237 281.7);
Tailwind
colors: {
  custom: {
    50: '#9978f1',
    500: '#5c40e8',
    950: '#000000',
  },
}
SCSS
$custom: #5c40e8;
$custom-light: #9978f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40e8",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 250,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51469,
    "c": 0.23726,
    "h": 281.7
  },
  "luminance": 0.11768
}

Semantic roles & 50–950 ramp

primary
#5C40E8
secondary
#D8E3A0
accent
#F533D5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5C40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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