#5E4E97#5E4E97

#5E4E97 is a mid, moderate violet. Relative luminance 0.101; OKLCH L 47.5% C 0.115 H 291.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5E4E97
RGBrgb(94, 78, 151)
HSLhsl(253, 32%, 45%)
HSVhsv(253, 48%, 59%)
CMYKcmyk(37.7%, 48.3%, 0%, 40.8%)
CIE-LABlab(37.95, 24.56, -37.88)
CIE-LCHlch(37.95, 45.15, 302.95°)
OKLaboklab(47.5% 0.0421 -0.107)
OKLCHoklch(47.5% 0.115 291.5)
XYZxyz(12.9249, 10.0625, 30.5334)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4E97 #87974E
analogous
#4E6297 #5E4E97 #834E97
triadic
#5E4E97 #975E4E #4E975E
tetradic
#5E4E97 #974E62 #87974E #4E9783
square
#5E4E97 #974E62 #87974E #4E9783
split-complementary
#5E4E97 #97834E #62974E
monochromatic
#2C2446 #45396F #5E4E97 #7D6EB4 #A296C9

Accessibility & contrast

On white

6.97
#5E4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5E4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4E97
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4E97#FFFFFF#000000##FFFFFF
##5E4E971.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A9A
Deuteranopia (green-blind)
#355895
Tritanopia (blue-blind)
#505C6B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e4e97;
/* rgb */ color: rgb(94, 78, 151);
/* oklch */ color: oklch(47.5% 0.115 291.5);
Tailwind
colors: {
  custom: {
    50: '#8e80b6',
    500: '#5e4e97',
    950: '#000000',
  },
}
SCSS
$custom: #5e4e97;
$custom-light: #8e80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4e97",
  "rgb": {
    "r": 94,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 253.151,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47503,
    "c": 0.11495,
    "h": 291.5
  },
  "luminance": 0.10063
}

Semantic roles & 50–950 ramp

primary
#5E4E97
secondary
#ACB68B
accent
#C860B1
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0D0A11
muted
#7D7C80

Preview Lab

Preview with #5E4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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