#5E46BE#5E46BE

#5E46BE is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.9% C 0.179 H 287.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5E46BE
RGBrgb(94, 70, 190)
HSLhsl(252, 48%, 51%)
HSVhsv(252, 63%, 75%)
CMYKcmyk(50.5%, 63.2%, 0%, 25.5%)
CIE-LABlab(38.69, 40.93, -59.89)
CIE-LCHlch(38.69, 72.54, 304.35°)
OKLaboklab(48.88% 0.0523 -0.1716)
OKLCHoklch(48.88% 0.179 287)
XYZxyz(16.0978, 10.4769, 49.8792)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46BE #A6BE46
analogous
#466ABE #5E46BE #9A46BE
triadic
#5E46BE #BE5E46 #46BE5E
tetradic
#5E46BE #BE466A #A6BE46 #46BE9A
square
#5E46BE #BE466A #A6BE46 #46BE9A
split-complementary
#5E46BE #BE9A46 #6ABE46
monochromatic
#312466 #473493 #5E46BE #8573CE #ADA1DE

Accessibility & contrast

On white

6.78
#5E46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5E46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46BE
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46BE#FFFFFF#000000##FFFFFF
##5E46BE1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#3B637B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e46be;
/* rgb */ color: rgb(94, 70, 190);
/* oklch */ color: oklch(48.9% 0.179 287.0);
Tailwind
colors: {
  custom: {
    50: '#947bd2',
    500: '#5e46be',
    950: '#000000',
  },
}
SCSS
$custom: #5e46be;
$custom-light: #947bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46be",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 252,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.17943,
    "h": 287
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#5E46BE
secondary
#C0CA95
accent
#D850BD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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