#5A526A#5A526A

#5A526A is a mid, muted violet. Relative luminance 0.092; OKLCH L 45.6% C 0.040 H 300.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5A526A
RGBrgb(90, 82, 106)
HSLhsl(260, 13%, 37%)
HSVhsv(260, 23%, 42%)
CMYKcmyk(15.1%, 22.6%, 0%, 58.4%)
CIE-LABlab(36.46, 8.62, -12.62)
CIE-LCHlch(36.46, 15.28, 304.34°)
OKLaboklab(45.55% 0.0199 -0.0344)
OKLCHoklch(45.55% 0.04 300.1)
XYZxyz(9.8347, 9.2488, 14.9000)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A526A #626A52
analogous
#52566A #5A526A #66526A
triadic
#5A526A #6A5A52 #526A5A
tetradic
#5A526A #6A5256 #626A52 #526A66
square
#5A526A #6A5256 #626A52 #526A66
split-complementary
#5A526A #6A6652 #566A52
monochromatic
#1F1D25 #3D3747 #5A526A #776D8D #978EA8

Accessibility & contrast

On white

7.37
#5A526A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A526A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A526A
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A526A#FFFFFF#000000##FFFFFF
##5A526A1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D566B
Deuteranopia (green-blind)
#4F5669
Tritanopia (blue-blind)
#57555A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a526a;
/* rgb */ color: rgb(90, 82, 106);
/* oklch */ color: oklch(45.6% 0.040 300.1);
Tailwind
colors: {
  custom: {
    50: '#898294',
    500: '#5a526a',
    950: '#000000',
  },
}
SCSS
$custom: #5a526a;
$custom-light: #898294;
$custom-dark: #000000;
JSON
{
  "hex": "#5a526a",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 106
  },
  "hsl": {
    "h": 260,
    "s": 12.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45552,
    "c": 0.03971,
    "h": 300.1
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#5A526A
secondary
#8F9682
accent
#B6729F
background
#F8F7F9
surface
#F0EEF1
border
#CBC9CB
text
#0B0A0D
muted
#7C7C7E

Preview Lab

Preview with #5A526A

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

Preview Lab → · Contrast checker → · Palette generator →

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