#5C4E97#5C4E97

#5C4E97 is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.3% C 0.115 H 290.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5C4E97
RGBrgb(92, 78, 151)
HSLhsl(252, 32%, 45%)
HSVhsv(252, 48%, 59%)
CMYKcmyk(39.1%, 48.3%, 0%, 40.8%)
CIE-LABlab(37.77, 24.01, -38.19)
CIE-LCHlch(37.77, 45.12, 302.16°)
OKLaboklab(47.32% 0.0395 -0.1079)
OKLCHoklch(47.32% 0.115 290.1)
XYZxyz(12.7224, 9.9581, 30.5239)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4E97 #89974E
analogous
#4E6497 #5C4E97 #814E97
triadic
#5C4E97 #975C4E #4E975C
tetradic
#5C4E97 #974E64 #89974E #4E9781
square
#5C4E97 #974E64 #89974E #4E9781
split-complementary
#5C4E97 #97814E #64974E
monochromatic
#2B2446 #43396F #5C4E97 #7C6EB4 #A096C9

Accessibility & contrast

On white

7.02
#5C4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5C4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C4E97
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4E97#FFFFFF#000000##FFFFFF
##5C4E971.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#345795
Tritanopia (blue-blind)
#4C5C6B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c4e97;
/* rgb */ color: rgb(92, 78, 151);
/* oklch */ color: oklch(47.3% 0.115 290.1);
Tailwind
colors: {
  custom: {
    50: '#8d7fb6',
    500: '#5c4e97',
    950: '#000000',
  },
}
SCSS
$custom: #5c4e97;
$custom-light: #8d7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4e97",
  "rgb": {
    "r": 92,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 251.507,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47317,
    "c": 0.11493,
    "h": 290.1
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

primary
#5C4E97
secondary
#ADB68B
accent
#C860B4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5C4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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