#5C40CF#5C40CF

#5C40CF is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.208 H 284.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5C40CF
RGBrgb(92, 64, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 69%, 81%)
CMYKcmyk(55.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(38.63, 49.00, -69.88)
CIE-LCHlch(38.63, 85.35, 305.04°)
OKLaboklab(49.22% 0.053 -0.201)
OKLCHoklch(49.22% 0.208 284.8)
XYZxyz(17.5061, 10.4461, 60.1132)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40CF #B3CF40
analogous
#406BCF #5C40CF #A340CF
triadic
#5C40CF #CF5C40 #40CF5C
tetradic
#5C40CF #CF406B #B3CF40 #40CFA3
square
#5C40CF #CF406B #B3CF40 #40CFA3
split-complementary
#5C40CF #CFA340 #6BCF40
monochromatic
#2F1E77 #432AA8 #5C40CF #8671DB #AFA2E8

Accessibility & contrast

On white

6.80
#5C40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5C40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40CF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40CF#FFFFFF#000000##FFFFFF
##5C40CF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#256583
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c40cf;
/* rgb */ color: rgb(92, 64, 207);
/* oklch */ color: oklch(49.2% 0.208 284.8);
Tailwind
colors: {
  custom: {
    50: '#9577df',
    500: '#5c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #5c40cf;
$custom-light: #9577df;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40cf",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 251.748,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.20789,
    "h": 284.8
  },
  "luminance": 0.10447
}

Semantic roles & 50–950 ramp

primary
#5C40CF
secondary
#C8D497
accent
#E345C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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