#5E46D6#5E46D6

#5E46D6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 50.9% C 0.209 H 283.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5E46D6
RGBrgb(94, 70, 214)
HSLhsl(250, 64%, 56%)
HSVhsv(250, 67%, 84%)
CMYKcmyk(56.1%, 67.3%, 0%, 16.1%)
CIE-LABlab(40.60, 48.10, -70.69)
CIE-LCHlch(40.60, 85.50, 304.23°)
OKLaboklab(50.85% 0.0495 -0.2034)
OKLCHoklch(50.85% 0.209 283.7)
XYZxyz(18.9401, 11.6139, 64.8490)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46D6 #BED646
analogous
#4676D6 #5E46D6 #A646D6
triadic
#5E46D6 #D65E46 #46D65E
tetradic
#5E46D6 #D64676 #BED646 #46D6A6
square
#5E46D6 #D64676 #BED646 #46D6A6
split-complementary
#5E46D6 #D6A646 #76D646
monochromatic
#2E1D84 #4028B6 #5E46D6 #8A78E1 #B5AAEC

Accessibility & contrast

On white

6.32
#5E46D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5E46D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46D6
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46D6#FFFFFF#000000##FFFFFF
##5E46D61.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005BD3
Tritanopia (blue-blind)
#226B88
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5e46d6;
/* rgb */ color: rgb(94, 70, 214);
/* oklch */ color: oklch(50.9% 0.209 283.7);
Tailwind
colors: {
  custom: {
    50: '#977be4',
    500: '#5e46d6',
    950: '#000000',
  },
}
SCSS
$custom: #5e46d6;
$custom-light: #977be4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46d6",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 214
  },
  "hsl": {
    "h": 250,
    "s": 63.717,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50854,
    "c": 0.2093,
    "h": 283.7
  },
  "luminance": 0.11615
}

Semantic roles & 50–950 ramp

primary
#5E46D6
secondary
#D0DA9E
accent
#E741CB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5E46D6

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

Preview Lab → · Contrast checker → · Palette generator →

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