#5D40DC#5D40DC

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

Color values

HEX#5D40DC
RGBrgb(93, 64, 220)
HSLhsl(251, 69%, 56%)
HSVhsv(251, 71%, 86%)
CMYKcmyk(57.7%, 70.9%, 0%, 13.7%)
CIE-LABlab(39.85, 52.96, -75.36)
CIE-LCHlch(39.85, 92.11, 305.10°)
OKLaboklab(50.46% 0.052 -0.217)
OKLCHoklch(50.46% 0.223 283.5)
XYZxyz(19.2619, 11.1600, 68.8354)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40DC #BFDC40
analogous
#4071DC #5D40DC #AB40DC
triadic
#5D40DC #DC5D40 #40DC5D
tetradic
#5D40DC #DC4071 #BFDC40 #40DCAB
square
#5D40DC #DC4071 #BFDC40 #40DCAB
split-complementary
#5D40DC #DCAB40 #71DC40
monochromatic
#2E1989 #3F23BC #5D40DC #8974E5 #B5A7EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D40DC#FFFFFF#000000##FFFFFF
##5D40DC1.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)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#116A8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d40dc;
/* rgb */ color: rgb(93, 64, 220);
/* oklch */ color: oklch(50.5% 0.223 283.5);
Tailwind
colors: {
  custom: {
    50: '#9878e8',
    500: '#5d40dc',
    950: '#000000',
  },
}
SCSS
$custom: #5d40dc;
$custom-light: #9878e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40dc",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 251.154,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50457,
    "c": 0.22319,
    "h": 283.5
  },
  "luminance": 0.11161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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