#5E46D5#5E46D5

#5E46D5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 50.8% C 0.208 H 283.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5E46D5
RGBrgb(94, 70, 213)
HSLhsl(250, 63%, 55%)
HSVhsv(250, 67%, 84%)
CMYKcmyk(55.9%, 67.1%, 0%, 16.5%)
CIE-LABlab(40.51, 47.80, -70.25)
CIE-LCHlch(40.51, 84.97, 304.23°)
OKLaboklab(50.77% 0.0497 -0.2021)
OKLCHoklch(50.77% 0.208 283.8)
XYZxyz(18.8128, 11.5630, 64.1784)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46D5 #BDD546
analogous
#4675D5 #5E46D5 #A546D5
triadic
#5E46D5 #D55E46 #46D55E
tetradic
#5E46D5 #D54675 #BDD546 #46D5A5
square
#5E46D5 #D54675 #BDD546 #46D5A5
split-complementary
#5E46D5 #D5A546 #75D546
monochromatic
#2F1E83 #4029B5 #5E46D5 #8978E0 #B5AAEC

Accessibility & contrast

On white

6.34
#5E46D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5E46D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46D5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46D5#FFFFFF#000000##FFFFFF
##5E46D51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#236B88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e46d5;
/* rgb */ color: rgb(94, 70, 213);
/* oklch */ color: oklch(50.8% 0.208 283.8);
Tailwind
colors: {
  custom: {
    50: '#977be3',
    500: '#5e46d5',
    950: '#000000',
  },
}
SCSS
$custom: #5e46d5;
$custom-light: #977be3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46d5",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 213
  },
  "hsl": {
    "h": 250.07,
    "s": 62.996,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50769,
    "c": 0.20809,
    "h": 283.8
  },
  "luminance": 0.11564
}

Semantic roles & 50–950 ramp

primary
#5E46D5
secondary
#CFD99E
accent
#E642CA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5E46D5

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

Preview Lab → · Contrast checker → · Palette generator →

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