#5C4978#5C4978

#5C4978 is a dark, moderate violet. Relative luminance 0.084; OKLCH L 44.5% C 0.078 H 301.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5C4978
RGBrgb(92, 73, 120)
HSLhsl(264, 24%, 38%)
HSVhsv(264, 39%, 47%)
CMYKcmyk(23.3%, 39.2%, 0%, 52.9%)
CIE-LABlab(34.80, 18.55, -23.89)
CIE-LCHlch(34.80, 30.24, 307.83°)
OKLaboklab(44.53% 0.0413 -0.0663)
OKLCHoklch(44.53% 0.078 301.9)
XYZxyz(10.1856, 8.3965, 18.8497)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4978 #657849
analogous
#494E78 #5C4978 #734978
triadic
#5C4978 #785C49 #49785C
tetradic
#5C4978 #78494E #657849 #497873
square
#5C4978 #78494E #657849 #497873
split-complementary
#5C4978 #787349 #4E7849
monochromatic
#221B2C #3F3252 #5C4978 #79609E #9986B5

Accessibility & contrast

On white

7.84
#5C4978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5C4978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C4978
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4978#FFFFFF#000000##FFFFFF
##5C49781.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E517A
Deuteranopia (green-blind)
#425277
Tritanopia (blue-blind)
#57515B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c4978;
/* rgb */ color: rgb(92, 73, 120);
/* oklch */ color: oklch(44.5% 0.078 301.9);
Tailwind
colors: {
  custom: {
    50: '#8b7c9f',
    500: '#5c4978',
    950: '#000000',
  },
}
SCSS
$custom: #5c4978;
$custom-light: #8b7c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4978",
  "rgb": {
    "r": 92,
    "g": 73,
    "b": 120
  },
  "hsl": {
    "h": 264.255,
    "s": 24.352,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44526,
    "c": 0.07814,
    "h": 301.9
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#5C4978
secondary
#92A27B
accent
#C1679C
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C090E
muted
#7D7B7E

Preview Lab

Preview with #5C4978

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

Preview Lab → · Contrast checker → · Palette generator →

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