#5E4BB2#5E4BB2

#5E4BB2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.8% C 0.157 H 287.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5E4BB2
RGBrgb(94, 75, 178)
HSLhsl(251, 41%, 50%)
HSVhsv(251, 58%, 70%)
CMYKcmyk(47.2%, 57.9%, 0%, 30.2%)
CIE-LABlab(38.94, 34.37, -52.42)
CIE-LCHlch(38.94, 62.68, 303.25°)
OKLaboklab(48.79% 0.0475 -0.1496)
OKLCHoklch(48.79% 0.157 287.6)
XYZxyz(15.1657, 10.6256, 43.3627)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4BB2 #9FB24B
analogous
#4B6CB2 #5E4BB2 #924BB2
triadic
#5E4BB2 #B25E4B #4BB25E
tetradic
#5E4BB2 #B24B6C #9FB24B #4BB292
square
#5E4BB2 #B24B6C #9FB24B #4BB292
split-complementary
#5E4BB2 #B2924B #6CB24B
monochromatic
#31275C #473987 #5E4BB2 #8475C5 #AAA0D7

Accessibility & contrast

On white

6.72
#5E4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5E4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4BB2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4BB2#FFFFFF#000000##FFFFFF
##5E4BB21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0159B0
Tritanopia (blue-blind)
#436277
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4bb2;
/* rgb */ color: rgb(94, 75, 178);
/* oklch */ color: oklch(48.8% 0.157 287.6);
Tailwind
colors: {
  custom: {
    50: '#927eca',
    500: '#5e4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4bb2;
$custom-light: #927eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4bb2",
  "rgb": {
    "r": 94,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 251.068,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48791,
    "c": 0.15698,
    "h": 287.6
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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