#5E40CD#5E40CD

#5E40CD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.205 H 285.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5E40CD
RGBrgb(94, 64, 205)
HSLhsl(253, 59%, 53%)
HSVhsv(253, 69%, 80%)
CMYKcmyk(54.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.64, 48.73, -68.69)
CIE-LCHlch(38.64, 84.22, 305.35°)
OKLaboklab(49.22% 0.0561 -0.1975)
OKLCHoklch(49.22% 0.205 285.9)
XYZxyz(17.4656, 10.4533, 58.8431)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40CD #AFCD40
analogous
#4068CD #5E40CD #A440CD
triadic
#5E40CD #CD5E40 #40CD5E
tetradic
#5E40CD #CD4068 #AFCD40 #40CDA4
square
#5E40CD #CD4068 #AFCD40 #40CDA4
split-complementary
#5E40CD #CDA440 #68CD40
monochromatic
#311E74 #452BA5 #5E40CD #8771DA #B0A1E6

Accessibility & contrast

On white

6.79
#5E40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E40CD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40CD#FFFFFF#000000##FFFFFF
##5E40CD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#2E6582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e40cd;
/* rgb */ color: rgb(94, 64, 205);
/* oklch */ color: oklch(49.2% 0.205 285.9);
Tailwind
colors: {
  custom: {
    50: '#9677dd',
    500: '#5e40cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e40cd;
$custom-light: #9677dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40cd",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 252.766,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49222,
    "c": 0.20529,
    "h": 285.9
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#5E40CD
secondary
#C6D396
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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