#5C40C6#5C40C6

#5C40C6 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.197 H 286.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5C40C6
RGBrgb(92, 64, 198)
HSLhsl(253, 54%, 51%)
HSVhsv(253, 68%, 78%)
CMYKcmyk(53.5%, 67.7%, 0%, 22.4%)
CIE-LABlab(37.88, 46.35, -65.89)
CIE-LCHlch(37.88, 80.56, 305.12°)
OKLaboklab(48.45% 0.0545 -0.1893)
OKLCHoklch(48.45% 0.197 286)
XYZxyz(16.4370, 10.0184, 54.4828)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40C6 #AAC640
analogous
#4067C6 #5C40C6 #9F40C6
triadic
#5C40C6 #C65C40 #40C65C
tetradic
#5C40C6 #C64067 #AAC640 #40C69F
square
#5C40C6 #C64067 #AAC640 #40C69F
split-complementary
#5C40C6 #C69F40 #67C640
monochromatic
#30206C #452E9B #5C40C6 #846FD4 #AC9EE2

Accessibility & contrast

On white

6.99
#5C40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5C40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40C6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40C6#FFFFFF#000000##FFFFFF
##5C40C61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#30627E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c40c6;
/* rgb */ color: rgb(92, 64, 198);
/* oklch */ color: oklch(48.4% 0.197 286.0);
Tailwind
colors: {
  custom: {
    50: '#9477d8',
    500: '#5c40c6',
    950: '#000000',
  },
}
SCSS
$custom: #5c40c6;
$custom-light: #9477d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40c6",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 252.537,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48446,
    "c": 0.197,
    "h": 286
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#5C40C6
secondary
#C2CE93
accent
#DD4ABF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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