#5C40D0#5C40D0

#5C40D0 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.209 H 284.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5C40D0
RGBrgb(92, 64, 208)
HSLhsl(252, 61%, 53%)
HSVhsv(252, 69%, 82%)
CMYKcmyk(55.8%, 69.2%, 0%, 18.4%)
CIE-LABlab(38.72, 49.30, -70.32)
CIE-LCHlch(38.72, 85.88, 305.03°)
OKLaboklab(49.31% 0.0528 -0.2023)
OKLCHoklch(49.31% 0.209 284.6)
XYZxyz(17.6287, 10.4951, 60.7591)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40D0 #B4D040
analogous
#406CD0 #5C40D0 #A440D0
triadic
#5C40D0 #D05C40 #40D05C
tetradic
#5C40D0 #D0406C #B4D040 #40D0A4
square
#5C40D0 #D0406C #B4D040 #40D0A4
split-complementary
#5C40D0 #D0A440 #6CD040
monochromatic
#2F1E78 #422AA9 #5C40D0 #8671DC #B0A2E8

Accessibility & contrast

On white

6.78
#5C40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5C40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40D0
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40D0#FFFFFF#000000##FFFFFF
##5C40D01.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD4
Deuteranopia (green-blind)
#0057CD
Tritanopia (blue-blind)
#246683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c40d0;
/* rgb */ color: rgb(92, 64, 208);
/* oklch */ color: oklch(49.3% 0.209 284.6);
Tailwind
colors: {
  custom: {
    50: '#9677df',
    500: '#5c40d0',
    950: '#000000',
  },
}
SCSS
$custom: #5c40d0;
$custom-light: #9677df;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40d0",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 251.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49308,
    "c": 0.20909,
    "h": 284.6
  },
  "luminance": 0.10496
}

Semantic roles & 50–950 ramp

primary
#5C40D0
secondary
#C9D597
accent
#E444C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5C40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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