#5C40DA#5C40DA

#5C40DA is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.221 H 283.3°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5C40DA
RGBrgb(92, 64, 218)
HSLhsl(251, 68%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(57.8%, 70.6%, 0%, 14.5%)
CIE-LABlab(39.59, 52.24, -74.65)
CIE-LCHlch(39.59, 91.11, 304.98°)
OKLaboklab(50.19% 0.051 -0.215)
OKLCHoklch(50.19% 0.221 283.3)
XYZxyz(18.8980, 11.0028, 67.4440)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40DA #BEDA40
analogous
#4071DA #5C40DA #A940DA
triadic
#5C40DA #DA5C40 #40DA5C
tetradic
#5C40DA #DA4071 #BEDA40 #40DAA9
square
#5C40DA #DA4071 #BEDA40 #40DAA9
split-complementary
#5C40DA #DAA940 #71DA40
monochromatic
#2D1A86 #3F24B9 #5C40DA #8873E4 #B4A7EE

Accessibility & contrast

On white

6.56
#5C40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5C40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40DA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40DA#FFFFFF#000000##FFFFFF
##5C40DA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DF
Deuteranopia (green-blind)
#0058D7
Tritanopia (blue-blind)
#106A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5c40da;
/* rgb */ color: rgb(92, 64, 218);
/* oklch */ color: oklch(50.2% 0.221 283.3);
Tailwind
colors: {
  custom: {
    50: '#9778e7',
    500: '#5c40da',
    950: '#000000',
  },
}
SCSS
$custom: #5c40da;
$custom-light: #9778e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40da",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 250.909,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50194,
    "c": 0.22097,
    "h": 283.3
  },
  "luminance": 0.11004
}

Semantic roles & 50–950 ramp

primary
#5C40DA
secondary
#CFDB9B
accent
#EA3DCB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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