#5C40CD#5C40CD

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

Color values

HEX#5C40CD
RGBrgb(92, 64, 205)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(55.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.46, 48.41, -69.00)
CIE-LCHlch(38.46, 84.29, 305.05°)
OKLaboklab(49.05% 0.0533 -0.1984)
OKLCHoklch(49.05% 0.205 285)
XYZxyz(17.2631, 10.3489, 58.8337)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40CD #B1CD40
analogous
#406ACD #5C40CD #A240CD
triadic
#5C40CD #CD5C40 #40CD5C
tetradic
#5C40CD #CD406A #B1CD40 #40CDA2
square
#5C40CD #CD406A #B1CD40 #40CDA2
split-complementary
#5C40CD #CDA240 #6ACD40
monochromatic
#2F1E74 #432BA5 #5C40CD #8571DA #AFA1E6

Accessibility & contrast

On white

6.84
#5C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5C40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40CD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40CD#FFFFFF#000000##FFFFFF
##5C40CD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#286582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c40cd;
/* rgb */ color: rgb(92, 64, 205);
/* oklch */ color: oklch(49.0% 0.205 285.0);
Tailwind
colors: {
  custom: {
    50: '#9577dd',
    500: '#5c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #5c40cd;
$custom-light: #9577dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40cd",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 251.915,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49047,
    "c": 0.20548,
    "h": 285
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#5C40CD
secondary
#C7D396
accent
#E246C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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