#5E40E6#5E40E6

#5E40E6 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.235 H 282.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5E40E6
RGBrgb(94, 64, 230)
HSLhsl(251, 77%, 58%)
HSVhsv(251, 72%, 90%)
CMYKcmyk(59.1%, 72.2%, 0%, 9.8%)
CIE-LABlab(40.83, 56.01, -79.45)
CIE-LCHlch(40.83, 97.21, 305.18°)
OKLaboklab(51.45% 0.0513 -0.229)
OKLCHoklch(51.45% 0.235 282.6)
XYZxyz(20.7280, 11.7582, 76.0249)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40E6 #C8E640
analogous
#4075E6 #5E40E6 #B140E6
triadic
#5E40E6 #E65E40 #40E65E
tetradic
#5E40E6 #E64075 #C8E640 #40E6B1
square
#5E40E6 #E64075 #C8E640 #40E6B1
split-complementary
#5E40E6 #E6B140 #75E640
monochromatic
#2C1498 #3B1BCE #5E40E6 #8C76ED #B9ACF4

Accessibility & contrast

On white

6.26
#5E40E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5E40E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E40E6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E40E6#FFFFFF#000000##FFFFFF
##5E40E61.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EB
Deuteranopia (green-blind)
#005AE3
Tritanopia (blue-blind)
#006E8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e40e6;
/* rgb */ color: rgb(94, 64, 230);
/* oklch */ color: oklch(51.4% 0.235 282.6);
Tailwind
colors: {
  custom: {
    50: '#9a78ef',
    500: '#5e40e6',
    950: '#000000',
  },
}
SCSS
$custom: #5e40e6;
$custom-light: #9a78ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40e6",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 250.843,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51446,
    "c": 0.23467,
    "h": 282.6
  },
  "luminance": 0.1176
}

Semantic roles & 50–950 ramp

primary
#5E40E6
secondary
#D6E29F
accent
#F334D1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5E40E6

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

Preview Lab → · Contrast checker → · Palette generator →

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