#5E40ED#5E40ED

#5E40ED is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.243 H 281.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5E40ED
RGBrgb(94, 64, 237)
HSLhsl(250, 83%, 59%)
HSVhsv(250, 73%, 93%)
CMYKcmyk(60.3%, 73%, 0%, 7.1%)
CIE-LABlab(41.47, 58.03, -82.36)
CIE-LCHlch(41.47, 100.75, 305.17°)
OKLaboklab(52.09% 0.0498 -0.2375)
OKLCHoklch(52.09% 0.243 281.8)
XYZxyz(21.7308, 12.1594, 81.3062)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40ED #CFED40
analogous
#4079ED #5E40ED #B540ED
triadic
#5E40ED #ED5E40 #40ED5E
tetradic
#5E40ED #ED4079 #CFED40 #40EDB5
square
#5E40ED #ED4079 #CFED40 #40EDB5
split-complementary
#5E40ED #EDB540 #79ED40
monochromatic
#290FA3 #3715DB #5E40ED #8D78F2 #BCB0F8

Accessibility & contrast

On white

6.12
#5E40ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5E40ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40ED
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40ED#FFFFFF#000000##FFFFFF
##5E40ED1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068F2
Deuteranopia (green-blind)
#005CEA
Tritanopia (blue-blind)
#007193
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5e40ed;
/* rgb */ color: rgb(94, 64, 237);
/* oklch */ color: oklch(52.1% 0.243 281.8);
Tailwind
colors: {
  custom: {
    50: '#9b78f4',
    500: '#5e40ed',
    950: '#000000',
  },
}
SCSS
$custom: #5e40ed;
$custom-light: #9b78f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40ed",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 250.405,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52091,
    "c": 0.24267,
    "h": 281.8
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#5E40ED
secondary
#DBE6A2
accent
#F92FD6
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5E40ED

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

Preview Lab → · Contrast checker → · Palette generator →

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