#5C40CE#5C40CE

#5C40CE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.1% C 0.207 H 284.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5C40CE
RGBrgb(92, 64, 206)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 69%, 81%)
CMYKcmyk(55.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.55, 48.71, -69.44)
CIE-LCHlch(38.55, 84.82, 305.05°)
OKLaboklab(49.13% 0.0532 -0.1997)
OKLCHoklch(49.13% 0.207 284.9)
XYZxyz(17.3842, 10.3973, 59.4714)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40CE #B2CE40
analogous
#406BCE #5C40CE #A340CE
triadic
#5C40CE #CE5C40 #40CE5C
tetradic
#5C40CE #CE406B #B2CE40 #40CEA3
square
#5C40CE #CE406B #B2CE40 #40CEA3
split-complementary
#5C40CE #CEA340 #6BCE40
monochromatic
#2F1E75 #432BA6 #5C40CE #8671DA #AFA1E7

Accessibility & contrast

On white

6.82
#5C40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5C40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40CE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40CE#FFFFFF#000000##FFFFFF
##5C40CE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#276582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c40ce;
/* rgb */ color: rgb(92, 64, 206);
/* oklch */ color: oklch(49.1% 0.207 284.9);
Tailwind
colors: {
  custom: {
    50: '#9577de',
    500: '#5c40ce',
    950: '#000000',
  },
}
SCSS
$custom: #5c40ce;
$custom-light: #9577de;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40ce",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 251.831,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.20669,
    "h": 284.9
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#5C40CE
secondary
#C7D496
accent
#E245C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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