#5E40CF#5E40CF

#5E40CF is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.208 H 285.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5E40CF
RGBrgb(94, 64, 207)
HSLhsl(253, 60%, 53%)
HSVhsv(253, 69%, 81%)
CMYKcmyk(54.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(38.81, 49.31, -69.58)
CIE-LCHlch(38.81, 85.28, 305.33°)
OKLaboklab(49.4% 0.0558 -0.2001)
OKLCHoklch(49.4% 0.208 285.6)
XYZxyz(17.7086, 10.5505, 60.1227)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40CF #B1CF40
analogous
#4069CF #5E40CF #A540CF
triadic
#5E40CF #CF5E40 #40CF5E
tetradic
#5E40CF #CF4069 #B1CF40 #40CFA5
square
#5E40CF #CF4069 #B1CF40 #40CFA5
split-complementary
#5E40CF #CFA540 #69CF40
monochromatic
#301E77 #442AA8 #5E40CF #8771DB #B0A2E8

Accessibility & contrast

On white

6.75
#5E40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5E40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40CF
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40CF#FFFFFF#000000##FFFFFF
##5E40CF1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#2C6583
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e40cf;
/* rgb */ color: rgb(94, 64, 207);
/* oklch */ color: oklch(49.4% 0.208 285.6);
Tailwind
colors: {
  custom: {
    50: '#9677df',
    500: '#5e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e40cf;
$custom-light: #9677df;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40cf",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 252.587,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49395,
    "c": 0.20769,
    "h": 285.6
  },
  "luminance": 0.10551
}

Semantic roles & 50–950 ramp

primary
#5E40CF
secondary
#C7D497
accent
#E345C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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