#5A526E#5A526E

#5A526E is a mid, muted violet. Relative luminance 0.093; OKLCH L 45.7% C 0.046 H 297.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A526E
RGBrgb(90, 82, 110)
HSLhsl(257, 15%, 38%)
HSVhsv(257, 25%, 43%)
CMYKcmyk(18.2%, 25.5%, 0%, 56.9%)
CIE-LABlab(36.62, 9.61, -14.86)
CIE-LCHlch(36.62, 17.70, 302.88°)
OKLaboklab(45.73% 0.0213 -0.0407)
OKLCHoklch(45.73% 0.046 297.7)
XYZxyz(10.0476, 9.3340, 16.0211)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A526E #666E52
analogous
#52586E #5A526E #68526E
triadic
#5A526E #6E5A52 #526E5A
tetradic
#5A526E #6E5258 #666E52 #526E68
square
#5A526E #6E5258 #666E52 #526E68
split-complementary
#5A526E #6E6852 #586E52
monochromatic
#211E28 #3D384B #5A526E #776C91 #978FAB

Accessibility & contrast

On white

7.33
#5A526E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A526E
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A526E#FFFFFF#000000##FFFFFF
##5A526E1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C566F
Deuteranopia (green-blind)
#4D566D
Tritanopia (blue-blind)
#56565C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a526e;
/* rgb */ color: rgb(90, 82, 110);
/* oklch */ color: oklch(45.7% 0.046 297.7);
Tailwind
colors: {
  custom: {
    50: '#898297',
    500: '#5a526e',
    950: '#000000',
  },
}
SCSS
$custom: #5a526e;
$custom-light: #898297;
$custom-dark: #000000;
JSON
{
  "hex": "#5a526e",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 110
  },
  "hsl": {
    "h": 257.143,
    "s": 14.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45729,
    "c": 0.04591,
    "h": 297.7
  },
  "luminance": 0.09334
}

Semantic roles & 50–950 ramp

primary
#5A526E
secondary
#939982
accent
#B770A3
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0D
muted
#7C7C7E

Preview Lab

Preview with #5A526E

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

Preview Lab → · Contrast checker → · Palette generator →

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