#5E40DF#5E40DF

#5E40DF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.227 H 283.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5E40DF
RGBrgb(94, 64, 223)
HSLhsl(251, 71%, 56%)
HSVhsv(251, 71%, 87%)
CMYKcmyk(57.8%, 71.3%, 0%, 12.5%)
CIE-LABlab(40.20, 53.98, -76.49)
CIE-LCHlch(40.20, 93.62, 305.21°)
OKLaboklab(50.81% 0.0528 -0.2203)
OKLCHoklch(50.81% 0.227 283.5)
XYZxyz(19.7647, 11.3729, 70.9514)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40DF #C1DF40
analogous
#4072DF #5E40DF #AE40DF
triadic
#5E40DF #DF5E40 #40DF5E
tetradic
#5E40DF #DF4072 #C1DF40 #40DFAE
square
#5E40DF #DF4072 #C1DF40 #40DFAE
split-complementary
#5E40DF #DFAE40 #72DF40
monochromatic
#2E188D #3F20C1 #5E40DF #8A74E8 #B6A9F1

Accessibility & contrast

On white

6.41
#5E40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5E40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40DF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40DF#FFFFFF#000000##FFFFFF
##5E40DF1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#0059DC
Tritanopia (blue-blind)
#0F6B8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e40df;
/* rgb */ color: rgb(94, 64, 223);
/* oklch */ color: oklch(50.8% 0.227 283.5);
Tailwind
colors: {
  custom: {
    50: '#9978ea',
    500: '#5e40df',
    950: '#000000',
  },
}
SCSS
$custom: #5e40df;
$custom-light: #9978ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40df",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 251.321,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.22657,
    "h": 283.5
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#5E40DF
secondary
#D2DE9D
accent
#EE3ACC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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