#5C4E8D#5C4E8D

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

Color values

HEX#5C4E8D
RGBrgb(92, 78, 141)
HSLhsl(253, 29%, 43%)
HSVhsv(253, 45%, 55%)
CMYKcmyk(34.8%, 44.7%, 0%, 44.7%)
CIE-LABlab(37.20, 21.13, -33.03)
CIE-LCHlch(37.20, 39.21, 302.61°)
OKLaboklab(46.71% 0.0381 -0.0928)
OKLCHoklch(46.71% 0.1 292.3)
XYZxyz(11.9445, 9.6469, 26.4269)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4E8D #7F8D4E
analogous
#4E608D #5C4E8D #7B4E8D
triadic
#5C4E8D #8D5C4E #4E8D5C
tetradic
#5C4E8D #8D4E60 #7F8D4E #4E8D7B
square
#5C4E8D #8D4E60 #7F8D4E #4E8D7B
split-complementary
#5C4E8D #8D7B4E #608D4E
monochromatic
#29223E #423866 #5C4E8D #7A6BAD #9D92C3

Accessibility & contrast

On white

7.17
#5C4E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C4E8D
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4E8D#FFFFFF#000000##FFFFFF
##5C4E8D1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A588F
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#505A66
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c4e8d;
/* rgb */ color: rgb(92, 78, 141);
/* oklch */ color: oklch(46.7% 0.100 292.3);
Tailwind
colors: {
  custom: {
    50: '#8c7fae',
    500: '#5c4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5c4e8d;
$custom-light: #8c7fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4e8d",
  "rgb": {
    "r": 92,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 253.333,
    "s": 28.767,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46706,
    "c": 0.10033,
    "h": 292.3
  },
  "luminance": 0.09647
}

Semantic roles & 50–950 ramp

primary
#5C4E8D
secondary
#A7AF87
accent
#C563AF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5C4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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