#5E4E87#5E4E87

#5E4E87 is a mid, moderate violet. Relative luminance 0.096; OKLCH L 46.6% C 0.092 H 295.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5E4E87
RGBrgb(94, 78, 135)
HSLhsl(257, 27%, 42%)
HSVhsv(257, 42%, 53%)
CMYKcmyk(30.4%, 42.2%, 0%, 47.1%)
CIE-LABlab(37.07, 20.05, -29.56)
CIE-LCHlch(37.07, 35.71, 304.15°)
OKLaboklab(46.55% 0.0395 -0.0827)
OKLCHoklch(46.55% 0.092 295.5)
XYZxyz(11.7126, 9.5776, 24.1486)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4E87 #77874E
analogous
#4E5B87 #5E4E87 #7B4E87
triadic
#5E4E87 #875E4E #4E875E
tetradic
#5E4E87 #874E5B #77874E #4E877B
square
#5E4E87 #874E5B #77874E #4E877B
split-complementary
#5E4E87 #877B4E #5B874E
monochromatic
#282139 #433860 #5E4E87 #7B6AA9 #9D90BF

Accessibility & contrast

On white

7.20
#5E4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5E4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E4E87
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4E87#FFFFFF#000000##FFFFFF
##5E4E871.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5889
Deuteranopia (green-blind)
#405686
Tritanopia (blue-blind)
#555864
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e4e87;
/* rgb */ color: rgb(94, 78, 135);
/* oklch */ color: oklch(46.6% 0.092 295.5);
Tailwind
colors: {
  custom: {
    50: '#8d7faa',
    500: '#5e4e87',
    950: '#000000',
  },
}
SCSS
$custom: #5e4e87;
$custom-light: #8d7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4e87",
  "rgb": {
    "r": 94,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 256.842,
    "s": 26.761,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46551,
    "c": 0.09164,
    "h": 295.5
  },
  "luminance": 0.09578
}

Semantic roles & 50–950 ramp

primary
#5E4E87
secondary
#A1AC85
accent
#C365A9
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5E4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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