#5C5172#5C5172

#5C5172 is a mid, muted violet. Relative luminance 0.094; OKLCH L 45.9% C 0.054 H 299.5°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5C5172
RGBrgb(92, 81, 114)
HSLhsl(260, 17%, 38%)
HSVhsv(260, 29%, 45%)
CMYKcmyk(19.3%, 28.9%, 0%, 55.3%)
CIE-LABlab(36.70, 11.95, -17.21)
CIE-LCHlch(36.70, 20.96, 304.78°)
OKLaboklab(45.89% 0.0268 -0.0473)
OKLCHoklch(45.89% 0.054 299.5)
XYZxyz(10.3927, 9.3750, 17.1784)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5172 #677251
analogous
#515672 #5C5172 #6C5172
triadic
#5C5172 #725C51 #51725C
tetradic
#5C5172 #725156 #677251 #51726C
square
#5C5172 #725156 #677251 #51726C
split-complementary
#5C5172 #726C51 #567251
monochromatic
#221E2A #3F384E #5C5172 #796B96 #998EAF

Accessibility & contrast

On white

7.30
#5C5172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5C5172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C5172
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C5172#FFFFFF#000000##FFFFFF
##5C51721.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5673
Deuteranopia (green-blind)
#4C5671
Tritanopia (blue-blind)
#58565D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5c5172;
/* rgb */ color: rgb(92, 81, 114);
/* oklch */ color: oklch(45.9% 0.054 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a819a',
    500: '#5c5172',
    950: '#000000',
  },
}
SCSS
$custom: #5c5172;
$custom-light: #8a819a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5172",
  "rgb": {
    "r": 92,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 260,
    "s": 16.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.05435,
    "h": 299.5
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

primary
#5C5172
secondary
#949D82
accent
#BA6EA0
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5C5172

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

Preview Lab → · Contrast checker → · Palette generator →

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