#5E46D2#5E46D2

#5E46D2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.5% C 0.204 H 284.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5E46D2
RGBrgb(94, 70, 210)
HSLhsl(250, 61%, 55%)
HSVhsv(250, 67%, 82%)
CMYKcmyk(55.2%, 66.7%, 0%, 17.6%)
CIE-LABlab(40.27, 46.90, -68.93)
CIE-LCHlch(40.27, 83.37, 304.23°)
OKLaboklab(50.52% 0.0501 -0.1982)
OKLCHoklch(50.52% 0.204 284.2)
XYZxyz(18.4356, 11.4121, 62.1916)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46D2 #BAD246
analogous
#4674D2 #5E46D2 #A446D2
triadic
#5E46D2 #D25E46 #46D25E
tetradic
#5E46D2 #D24674 #BAD246 #46D2A4
square
#5E46D2 #D24674 #BAD246 #46D2A4
split-complementary
#5E46D2 #D2A446 #74D246
monochromatic
#2F1F7F #422BB0 #5E46D2 #8977DE #B4A8EA

Accessibility & contrast

On white

6.40
#5E46D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5E46D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46D2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46D2#FFFFFF#000000##FFFFFF
##5E46D21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#276A86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e46d2;
/* rgb */ color: rgb(94, 70, 210);
/* oklch */ color: oklch(50.5% 0.204 284.2);
Tailwind
colors: {
  custom: {
    50: '#967be1',
    500: '#5e46d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e46d2;
$custom-light: #967be1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46d2",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 250.286,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50515,
    "c": 0.20442,
    "h": 284.2
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#5E46D2
secondary
#CDD79C
accent
#E444C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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