#5E40DA#5E40DA

#5E40DA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.4% C 0.221 H 284.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5E40DA
RGBrgb(94, 64, 218)
HSLhsl(252, 68%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(56.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(39.76, 52.52, -74.36)
CIE-LCHlch(39.76, 91.03, 305.24°)
OKLaboklab(50.36% 0.0537 -0.2141)
OKLCHoklch(50.36% 0.221 284.1)
XYZxyz(19.1005, 11.1072, 67.4535)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40DA #BCDA40
analogous
#406FDA #5E40DA #AB40DA
triadic
#5E40DA #DA5E40 #40DA5E
tetradic
#5E40DA #DA406F #BCDA40 #40DAAB
square
#5E40DA #DA406F #BCDA40 #40DAAB
split-complementary
#5E40DA #DAAB40 #6FDA40
monochromatic
#2F1A86 #4124B9 #5E40DA #8973E4 #B4A7EE

Accessibility & contrast

On white

6.52
#5E40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5E40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40DA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40DA#FFFFFF#000000##FFFFFF
##5E40DA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DF
Deuteranopia (green-blind)
#0059D7
Tritanopia (blue-blind)
#1B6989
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e40da;
/* rgb */ color: rgb(94, 64, 218);
/* oklch */ color: oklch(50.4% 0.221 284.1);
Tailwind
colors: {
  custom: {
    50: '#9878e7',
    500: '#5e40da',
    950: '#000000',
  },
}
SCSS
$custom: #5e40da;
$custom-light: #9878e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40da",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 251.688,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50362,
    "c": 0.22072,
    "h": 284.1
  },
  "luminance": 0.11108
}

Semantic roles & 50–950 ramp

primary
#5E40DA
secondary
#CFDB9B
accent
#EA3DC9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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