#5C40CC#5C40CC

#5C40CC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.204 H 285.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5C40CC
RGBrgb(92, 64, 204)
HSLhsl(252, 58%, 53%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(54.9%, 68.6%, 0%, 20%)
CIE-LABlab(38.38, 48.12, -68.56)
CIE-LCHlch(38.38, 83.76, 305.06°)
OKLaboklab(48.96% 0.0535 -0.1971)
OKLCHoklch(48.96% 0.204 285.2)
XYZxyz(17.1428, 10.3008, 58.2000)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40CC #B0CC40
analogous
#406ACC #5C40CC #A240CC
triadic
#5C40CC #CC5C40 #40CC5C
tetradic
#5C40CC #CC406A #B0CC40 #40CCA2
square
#5C40CC #CC406A #B0CC40 #40CCA2
split-complementary
#5C40CC #CCA240 #6ACC40
monochromatic
#301F73 #442CA3 #5C40CC #8570D9 #AEA1E6

Accessibility & contrast

On white

6.86
#5C40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5C40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40CC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40CC#FFFFFF#000000##FFFFFF
##5C40CC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#296481
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5c40cc;
/* rgb */ color: rgb(92, 64, 204);
/* oklch */ color: oklch(49.0% 0.204 285.2);
Tailwind
colors: {
  custom: {
    50: '#9577dd',
    500: '#5c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #5c40cc;
$custom-light: #9577dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40cc",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 252,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48961,
    "c": 0.20428,
    "h": 285.2
  },
  "luminance": 0.10302
}

Semantic roles & 50–950 ramp

primary
#5C40CC
secondary
#C6D295
accent
#E147C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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