#5C4E98#5C4E98

#5C4E98 is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.4% C 0.116 H 289.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5C4E98
RGBrgb(92, 78, 152)
HSLhsl(251, 32%, 45%)
HSVhsv(251, 49%, 60%)
CMYKcmyk(39.5%, 48.7%, 0%, 40.4%)
CIE-LABlab(37.83, 24.31, -38.70)
CIE-LCHlch(37.83, 45.70, 302.13°)
OKLaboklab(47.38% 0.0397 -0.1094)
OKLCHoklch(47.38% 0.116 289.9)
XYZxyz(12.8040, 9.9907, 30.9535)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4E98 #8A984E
analogous
#4E6598 #5C4E98 #814E98
triadic
#5C4E98 #985C4E #4E985C
tetradic
#5C4E98 #984E65 #8A984E #4E9881
square
#5C4E98 #984E65 #8A984E #4E9881
split-complementary
#5C4E98 #98814E #65984E
monochromatic
#2B2447 #443970 #5C4E98 #7C6EB5 #A097CA

Accessibility & contrast

On white

7.00
#5C4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5C4E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C4E98
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4E98#FFFFFF#000000##FFFFFF
##5C4E981.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#335796
Tritanopia (blue-blind)
#4C5D6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c4e98;
/* rgb */ color: rgb(92, 78, 152);
/* oklch */ color: oklch(47.4% 0.116 289.9);
Tailwind
colors: {
  custom: {
    50: '#8d7fb7',
    500: '#5c4e98',
    950: '#000000',
  },
}
SCSS
$custom: #5c4e98;
$custom-light: #8d7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4e98",
  "rgb": {
    "r": 92,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 251.351,
    "s": 32.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4738,
    "c": 0.11637,
    "h": 289.9
  },
  "luminance": 0.09991
}

Semantic roles & 50–950 ramp

primary
#5C4E98
secondary
#AEB68C
accent
#C85FB4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5C4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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