#5A526C#5A526C

#5A526C is a mid, muted violet. Relative luminance 0.093; OKLCH L 45.6% C 0.043 H 298.8°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5A526C
RGBrgb(90, 82, 108)
HSLhsl(258, 14%, 37%)
HSVhsv(258, 24%, 42%)
CMYKcmyk(16.7%, 24.1%, 0%, 57.6%)
CIE-LABlab(36.54, 9.11, -13.74)
CIE-LCHlch(36.54, 16.49, 303.54°)
OKLaboklab(45.64% 0.0206 -0.0375)
OKLCHoklch(45.64% 0.043 298.8)
XYZxyz(9.9400, 9.2909, 15.4541)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A526C #646C52
analogous
#52576C #5A526C #67526C
triadic
#5A526C #6C5A52 #526C5A
tetradic
#5A526C #6C5257 #646C52 #526C67
square
#5A526C #6C5257 #646C52 #526C67
split-complementary
#5A526C #6C6752 #576C52
monochromatic
#201D26 #3D3849 #5A526C #776C8F #978FAA

Accessibility & contrast

On white

7.35
#5A526C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A526C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A526C
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A526C#FFFFFF#000000##FFFFFF
##5A526C1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D566D
Deuteranopia (green-blind)
#4E566B
Tritanopia (blue-blind)
#57565B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a526c;
/* rgb */ color: rgb(90, 82, 108);
/* oklch */ color: oklch(45.6% 0.043 298.8);
Tailwind
colors: {
  custom: {
    50: '#898296',
    500: '#5a526c',
    950: '#000000',
  },
}
SCSS
$custom: #5a526c;
$custom-light: #898296;
$custom-dark: #000000;
JSON
{
  "hex": "#5a526c",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 108
  },
  "hsl": {
    "h": 258.462,
    "s": 13.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.04281,
    "h": 298.8
  },
  "luminance": 0.09291
}

Semantic roles & 50–950 ramp

primary
#5A526C
secondary
#919882
accent
#B771A1
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0D
muted
#7C7C7E

Preview Lab

Preview with #5A526C

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

Preview Lab → · Contrast checker → · Palette generator →

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