#5E46BA#5E46BA

#5E46BA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.6% C 0.174 H 287.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5E46BA
RGBrgb(94, 70, 186)
HSLhsl(252, 46%, 50%)
HSVhsv(252, 62%, 73%)
CMYKcmyk(49.5%, 62.4%, 0%, 27.1%)
CIE-LABlab(38.38, 39.73, -58.04)
CIE-LCHlch(38.38, 70.33, 304.40°)
OKLaboklab(48.56% 0.0527 -0.1662)
OKLCHoklch(48.56% 0.174 287.6)
XYZxyz(15.6666, 10.3045, 47.6083)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46BA #A2BA46
analogous
#4668BA #5E46BA #9846BA
triadic
#5E46BA #BA5E46 #46BA5E
tetradic
#5E46BA #BA4668 #A2BA46 #46BA98
square
#5E46BA #BA4668 #A2BA46 #46BA98
split-complementary
#5E46BA #BA9846 #68BA46
monochromatic
#312461 #47358E #5E46BA #8573CB #AC9FDB

Accessibility & contrast

On white

6.86
#5E46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5E46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46BA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46BA#FFFFFF#000000##FFFFFF
##5E46BA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#3E6179
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e46ba;
/* rgb */ color: rgb(94, 70, 186);
/* oklch */ color: oklch(48.6% 0.174 287.6);
Tailwind
colors: {
  custom: {
    50: '#937bd0',
    500: '#5e46ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e46ba;
$custom-light: #937bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46ba",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 252.414,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.17431,
    "h": 287.6
  },
  "luminance": 0.10305
}

Semantic roles & 50–950 ramp

primary
#5E46BA
secondary
#BDC894
accent
#D552BA
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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