#5C40DD#5C40DD

#5C40DD is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.225 H 283.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5C40DD
RGBrgb(92, 64, 221)
HSLhsl(251, 70%, 56%)
HSVhsv(251, 71%, 87%)
CMYKcmyk(58.4%, 71%, 0%, 13.3%)
CIE-LABlab(39.85, 53.12, -75.93)
CIE-LCHlch(39.85, 92.67, 304.97°)
OKLaboklab(50.46% 0.0504 -0.2188)
OKLCHoklch(50.46% 0.225 283)
XYZxyz(19.2941, 11.1613, 69.5302)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40DD #C1DD40
analogous
#4072DD #5C40DD #AB40DD
triadic
#5C40DD #DD5C40 #40DD5C
tetradic
#5C40DD #DD4072 #C1DD40 #40DDAB
square
#5C40DD #DD4072 #C1DD40 #40DDAB
split-complementary
#5C40DD #DDAB40 #72DD40
monochromatic
#2D198A #3E22BE #5C40DD #8874E6 #B5A8EF

Accessibility & contrast

On white

6.50
#5C40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5C40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40DD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40DD#FFFFFF#000000##FFFFFF
##5C40DD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0058DA
Tritanopia (blue-blind)
#046B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5c40dd;
/* rgb */ color: rgb(92, 64, 221);
/* oklch */ color: oklch(50.5% 0.225 283.0);
Tailwind
colors: {
  custom: {
    50: '#9878e9',
    500: '#5c40dd',
    950: '#000000',
  },
}
SCSS
$custom: #5c40dd;
$custom-light: #9878e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40dd",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 250.701,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.2245,
    "h": 283
  },
  "luminance": 0.11163
}

Semantic roles & 50–950 ramp

primary
#5C40DD
secondary
#D1DD9C
accent
#ED3BCD
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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