#5E4E8A#5E4E8A

#5E4E8A is a mid, moderate violet. Relative luminance 0.097; OKLCH L 46.7% C 0.096 H 294.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5E4E8A
RGBrgb(94, 78, 138)
HSLhsl(256, 28%, 42%)
HSVhsv(256, 43%, 54%)
CMYKcmyk(31.9%, 43.5%, 0%, 45.9%)
CIE-LABlab(37.23, 20.88, -31.14)
CIE-LCHlch(37.23, 37.49, 303.84°)
OKLaboklab(46.72% 0.0401 -0.0873)
OKLCHoklch(46.72% 0.096 294.7)
XYZxyz(11.9268, 9.6633, 25.2767)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4E8A #7A8A4E
analogous
#4E5C8A #5E4E8A #7C4E8A
triadic
#5E4E8A #8A5E4E #4E8A5E
tetradic
#5E4E8A #8A4E5C #7A8A4E #4E8A7C
square
#5E4E8A #8A4E5C #7A8A4E #4E8A7C
split-complementary
#5E4E8A #8A7C4E #5C8A4E
monochromatic
#29223C #433863 #5E4E8A #7C6AAB #9E91C1

Accessibility & contrast

On white

7.16
#5E4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5E4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E4E8A
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4E8A#FFFFFF#000000##FFFFFF
##5E4E8A1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#545965
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e4e8a;
/* rgb */ color: rgb(94, 78, 138);
/* oklch */ color: oklch(46.7% 0.096 294.7);
Tailwind
colors: {
  custom: {
    50: '#8d7fac',
    500: '#5e4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e4e8a;
$custom-light: #8d7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4e8a",
  "rgb": {
    "r": 94,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 256,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.09605,
    "h": 294.7
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

primary
#5E4E8A
secondary
#A3AE86
accent
#C464AA
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5E4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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