#5C4792#5C4792

#5C4792 is a mid, moderate violet. Relative luminance 0.089; OKLCH L 45.7% C 0.119 H 294.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5C4792
RGBrgb(92, 71, 146)
HSLhsl(257, 35%, 43%)
HSVhsv(257, 51%, 57%)
CMYKcmyk(37%, 51.4%, 0%, 42.7%)
CIE-LABlab(35.71, 26.93, -38.45)
CIE-LCHlch(35.71, 46.94, 305.01°)
OKLaboklab(45.68% 0.0486 -0.1087)
OKLCHoklch(45.68% 0.119 294.1)
XYZxyz(11.8538, 8.8569, 28.2736)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4792 #7D9247
analogous
#475892 #5C4792 #814792
triadic
#5C4792 #925C47 #47925C
tetradic
#5C4792 #924758 #7D9247 #479281
square
#5C4792 #924758 #7D9247 #479281
split-complementary
#5C4792 #928147 #589247
monochromatic
#281F40 #423369 #5C4792 #7963B3 #9D8CC7

Accessibility & contrast

On white

7.58
#5C4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5C4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C4792
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4792#FFFFFF#000000##FFFFFF
##5C47921.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5595
Deuteranopia (green-blind)
#2F5390
Tritanopia (blue-blind)
#4F5665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c4792;
/* rgb */ color: rgb(92, 71, 146);
/* oklch */ color: oklch(45.7% 0.119 294.1);
Tailwind
colors: {
  custom: {
    50: '#8d7ab2',
    500: '#5c4792',
    950: '#000000',
  },
}
SCSS
$custom: #5c4792;
$custom-light: #8d7ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4792",
  "rgb": {
    "r": 92,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 256.8,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45677,
    "c": 0.11903,
    "h": 294.1
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#5C4792
secondary
#A5B382
accent
#CB5DAC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5C4792

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

Preview Lab → · Contrast checker → · Palette generator →

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