#5C40DB#5C40DB

#5C40DB is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.222 H 283.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5C40DB
RGBrgb(92, 64, 219)
HSLhsl(251, 68%, 55%)
HSVhsv(251, 71%, 86%)
CMYKcmyk(58%, 70.8%, 0%, 14.1%)
CIE-LABlab(39.67, 52.53, -75.08)
CIE-LCHlch(39.67, 91.63, 304.98°)
OKLaboklab(50.28% 0.0508 -0.2163)
OKLCHoklch(50.28% 0.222 283.2)
XYZxyz(19.0293, 11.0553, 68.1352)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40DB #BFDB40
analogous
#4071DB #5C40DB #AA40DB
triadic
#5C40DB #DB5C40 #40DB5C
tetradic
#5C40DB #DB4071 #BFDB40 #40DBAA
square
#5C40DB #DB4071 #BFDB40 #40DBAA
split-complementary
#5C40DB #DBAA40 #71DB40
monochromatic
#2D1987 #3F23BB #5C40DB #8873E5 #B4A7EE

Accessibility & contrast

On white

6.54
#5C40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5C40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40DB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40DB#FFFFFF#000000##FFFFFF
##5C40DB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0058D8
Tritanopia (blue-blind)
#0C6A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5c40db;
/* rgb */ color: rgb(92, 64, 219);
/* oklch */ color: oklch(50.3% 0.222 283.2);
Tailwind
colors: {
  custom: {
    50: '#9778e7',
    500: '#5c40db',
    950: '#000000',
  },
}
SCSS
$custom: #5c40db;
$custom-light: #9778e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40db",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 250.839,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50284,
    "c": 0.22215,
    "h": 283.2
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

primary
#5C40DB
secondary
#D0DC9B
accent
#EB3DCC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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