#5E4AB2#5E4AB2

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

Color values

HEX#5E4AB2
RGBrgb(94, 74, 178)
HSLhsl(252, 41%, 49%)
HSVhsv(252, 58%, 70%)
CMYKcmyk(47.2%, 58.4%, 0%, 30.2%)
CIE-LABlab(38.71, 34.97, -52.79)
CIE-LCHlch(38.71, 63.33, 303.52°)
OKLaboklab(48.62% 0.0486 -0.1507)
OKLCHoklch(48.62% 0.158 287.9)
XYZxyz(15.0984, 10.4910, 43.3403)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4AB2 #9EB24A
analogous
#4A6AB2 #5E4AB2 #924AB2
triadic
#5E4AB2 #B25E4A #4AB25E
tetradic
#5E4AB2 #B24A6A #9EB24A #4AB292
square
#5E4AB2 #B24A6A #9EB24A #4AB292
split-complementary
#5E4AB2 #B2924A #6AB24A
monochromatic
#30265C #473887 #5E4AB2 #8474C5 #AA9FD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E4AB2#FFFFFF#000000##FFFFFF
##5E4AB21.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)
#005EB5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#436177
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e4ab2;
/* rgb */ color: rgb(94, 74, 178);
/* oklch */ color: oklch(48.6% 0.158 287.9);
Tailwind
colors: {
  custom: {
    50: '#927dca',
    500: '#5e4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4ab2;
$custom-light: #927dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4ab2",
  "rgb": {
    "r": 94,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 251.538,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48619,
    "c": 0.15839,
    "h": 287.9
  },
  "luminance": 0.10492
}

Semantic roles & 50–950 ramp

primary
#5E4AB2
secondary
#BBC494
accent
#D157BA
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5E4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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