#5C40E1#5C40E1

#5C40E1 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.229 H 282.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5C40E1
RGBrgb(92, 64, 225)
HSLhsl(250, 73%, 57%)
HSVhsv(250, 72%, 88%)
CMYKcmyk(59.1%, 71.6%, 0%, 11.8%)
CIE-LABlab(40.21, 54.29, -77.63)
CIE-LCHlch(40.21, 94.73, 304.97°)
OKLaboklab(50.83% 0.0496 -0.2237)
OKLCHoklch(50.83% 0.229 282.5)
XYZxyz(19.8334, 11.3770, 72.3704)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40E1 #C5E140
analogous
#4075E1 #5C40E1 #AD40E1
triadic
#5C40E1 #E15C40 #40E15C
tetradic
#5C40E1 #E14075 #C5E140 #40E1AD
square
#5C40E1 #E14075 #C5E140 #40E1AD
split-complementary
#5C40E1 #E1AD40 #75E140
monochromatic
#2C1790 #3C1FC5 #5C40E1 #8975E9 #B6AAF2

Accessibility & contrast

On white

6.41
#5C40E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5C40E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40E1
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40E1#FFFFFF#000000##FFFFFF
##5C40E11.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#006C8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5c40e1;
/* rgb */ color: rgb(92, 64, 225);
/* oklch */ color: oklch(50.8% 0.229 282.5);
Tailwind
colors: {
  custom: {
    50: '#9878ec',
    500: '#5c40e1',
    950: '#000000',
  },
}
SCSS
$custom: #5c40e1;
$custom-light: #9878ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40e1",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 250.435,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50827,
    "c": 0.22915,
    "h": 282.5
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#5C40E1
secondary
#D4DF9D
accent
#F038D0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40E1

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

Preview Lab → · Contrast checker → · Palette generator →

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