#5A5072#5A5072

#5A5072 is a mid, muted violet. Relative luminance 0.091; OKLCH L 45.5% C 0.056 H 297.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A5072
RGBrgb(90, 80, 114)
HSLhsl(258, 18%, 38%)
HSVhsv(258, 30%, 45%)
CMYKcmyk(21.1%, 29.8%, 0%, 55.3%)
CIE-LABlab(36.23, 11.89, -17.95)
CIE-LCHlch(36.23, 21.53, 303.51°)
OKLaboklab(45.48% 0.0259 -0.0494)
OKLCHoklch(45.48% 0.056 297.6)
XYZxyz(10.1217, 9.1258, 17.1445)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5072 #687250
analogous
#505772 #5A5072 #6B5072
triadic
#5A5072 #725A50 #50725A
tetradic
#5A5072 #725057 #687250 #50726B
square
#5A5072 #725057 #687250 #50726B
split-complementary
#5A5072 #726B50 #577250
monochromatic
#211E2A #3E374E #5A5072 #766996 #978DAF

Accessibility & contrast

On white

7.43
#5A5072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A5072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5072
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5072#FFFFFF#000000##FFFFFF
##5A50721.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485573
Deuteranopia (green-blind)
#4A5571
Tritanopia (blue-blind)
#56555C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a5072;
/* rgb */ color: rgb(90, 80, 114);
/* oklch */ color: oklch(45.5% 0.056 297.6);
Tailwind
colors: {
  custom: {
    50: '#89819a',
    500: '#5a5072',
    950: '#000000',
  },
}
SCSS
$custom: #5a5072;
$custom-light: #89819a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5072",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 114
  },
  "hsl": {
    "h": 257.647,
    "s": 17.526,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45481,
    "c": 0.05578,
    "h": 297.6
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#5A5072
secondary
#959D81
accent
#BA6EA4
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #5A5072

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

Preview Lab → · Contrast checker → · Palette generator →

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