#5D40CE#5D40CE

#5D40CE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.207 H 285.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5D40CE
RGBrgb(93, 64, 206)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 69%, 81%)
CMYKcmyk(54.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.64, 48.86, -69.29)
CIE-LCHlch(38.64, 84.78, 305.19°)
OKLaboklab(49.22% 0.0546 -0.1993)
OKLCHoklch(49.22% 0.207 285.3)
XYZxyz(17.4848, 10.4492, 59.4761)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40CE #B1CE40
analogous
#406ACE #5D40CE #A440CE
triadic
#5D40CE #CE5D40 #40CE5D
tetradic
#5D40CE #CE406A #B1CE40 #40CEA4
square
#5D40CE #CE406A #B1CE40 #40CEA4
split-complementary
#5D40CE #CEA440 #6ACE40
monochromatic
#301E75 #442BA6 #5D40CE #8671DA #B0A1E7

Accessibility & contrast

On white

6.80
#5D40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5D40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40CE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40CE#FFFFFF#000000##FFFFFF
##5D40CE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0057CB
Tritanopia (blue-blind)
#2A6582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d40ce;
/* rgb */ color: rgb(93, 64, 206);
/* oklch */ color: oklch(49.2% 0.207 285.3);
Tailwind
colors: {
  custom: {
    50: '#9677de',
    500: '#5d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d40ce;
$custom-light: #9677de;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40ce",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 252.254,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.20659,
    "h": 285.3
  },
  "luminance": 0.1045
}

Semantic roles & 50–950 ramp

primary
#5D40CE
secondary
#C7D496
accent
#E245C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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