#5E40CA#5E40CA

#5E40CA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.202 H 286.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5E40CA
RGBrgb(94, 64, 202)
HSLhsl(253, 57%, 52%)
HSVhsv(253, 68%, 79%)
CMYKcmyk(53.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.39, 47.85, -67.36)
CIE-LCHlch(38.39, 82.63, 305.39°)
OKLaboklab(48.97% 0.0566 -0.1936)
OKLCHoklch(48.97% 0.202 286.3)
XYZxyz(17.1070, 10.3098, 56.9543)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40CA #ACCA40
analogous
#4067CA #5E40CA #A340CA
triadic
#5E40CA #CA5E40 #40CA5E
tetradic
#5E40CA #CA4067 #ACCA40 #40CAA3
square
#5E40CA #CA4067 #ACCA40 #40CAA3
split-complementary
#5E40CA #CAA340 #67CA40
monochromatic
#311F70 #462CA0 #5E40CA #8670D7 #AFA0E5

Accessibility & contrast

On white

6.86
#5E40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5E40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40CA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40CA#FFFFFF#000000##FFFFFF
##5E40CA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#316480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e40ca;
/* rgb */ color: rgb(94, 64, 202);
/* oklch */ color: oklch(49.0% 0.202 286.3);
Tailwind
colors: {
  custom: {
    50: '#9677db',
    500: '#5e40ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e40ca;
$custom-light: #9677db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40ca",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 253.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48965,
    "c": 0.20168,
    "h": 286.3
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#5E40CA
secondary
#C4D195
accent
#E048BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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