#5E4BB1#5E4BB1

#5E4BB1 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.7% C 0.156 H 287.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5E4BB1
RGBrgb(94, 75, 177)
HSLhsl(251, 40%, 49%)
HSVhsv(251, 58%, 69%)
CMYKcmyk(46.9%, 57.6%, 0%, 30.6%)
CIE-LABlab(38.87, 34.07, -51.94)
CIE-LCHlch(38.87, 62.12, 303.27°)
OKLaboklab(48.72% 0.0475 -0.1482)
OKLCHoklch(48.72% 0.156 287.8)
XYZxyz(15.0657, 10.5855, 42.8358)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4BB1 #9EB14B
analogous
#4B6BB1 #5E4BB1 #914BB1
triadic
#5E4BB1 #B15E4B #4BB15E
tetradic
#5E4BB1 #B14B6B #9EB14B #4BB191
square
#5E4BB1 #B14B6B #9EB14B #4BB191
split-complementary
#5E4BB1 #B1914B #6BB14B
monochromatic
#30275B #473986 #5E4BB1 #8475C4 #AAA0D7

Accessibility & contrast

On white

6.74
#5E4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5E4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4BB1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4BB1#FFFFFF#000000##FFFFFF
##5E4BB11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035EB4
Deuteranopia (green-blind)
#0559AF
Tritanopia (blue-blind)
#436276
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4bb1;
/* rgb */ color: rgb(94, 75, 177);
/* oklch */ color: oklch(48.7% 0.156 287.8);
Tailwind
colors: {
  custom: {
    50: '#927ec9',
    500: '#5e4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5e4bb1;
$custom-light: #927ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4bb1",
  "rgb": {
    "r": 94,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 251.176,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48718,
    "c": 0.15564,
    "h": 287.8
  },
  "luminance": 0.10586
}

Semantic roles & 50–950 ramp

primary
#5E4BB1
secondary
#BBC394
accent
#D057BA
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5E4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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