#5A5262#5A5262

#5A5262 is a mid, muted violet. Relative luminance 0.091; OKLCH L 45.2% C 0.028 H 307.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5A5262
RGBrgb(90, 82, 98)
HSLhsl(270, 9%, 35%)
HSVhsv(270, 16%, 38%)
CMYKcmyk(8.2%, 16.3%, 0%, 61.6%)
CIE-LABlab(36.16, 6.72, -8.07)
CIE-LCHlch(36.16, 10.51, 309.77°)
OKLaboklab(45.22% 0.0169 -0.0217)
OKLCHoklch(45.22% 0.028 307.8)
XYZxyz(9.4380, 9.0901, 12.8103)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5262 #5A6252
analogous
#525262 #5A5262 #625262
triadic
#5A5262 #625A52 #52625A
tetradic
#5A5262 #625252 #5A6252 #526262
square
#5A5262 #625252 #5A6252 #526262
split-complementary
#5A5262 #626252 #526252
monochromatic
#1D1A1F #3B3641 #5A5262 #796E83 #978EA0

Accessibility & contrast

On white

7.45
#5A5262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A5262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5262
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5262#FFFFFF#000000##FFFFFF
##5A52621.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505563
Deuteranopia (green-blind)
#515561
Tritanopia (blue-blind)
#595457
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a5262;
/* rgb */ color: rgb(90, 82, 98);
/* oklch */ color: oklch(45.2% 0.028 307.8);
Tailwind
colors: {
  custom: {
    50: '#88828e',
    500: '#5a5262',
    950: '#000000',
  },
}
SCSS
$custom: #5a5262;
$custom-light: #88828e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5262",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 98
  },
  "hsl": {
    "h": 270,
    "s": 8.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45218,
    "c": 0.02753,
    "h": 307.8
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#5A5262
secondary
#888F80
accent
#B27694
background
#F8F7F8
surface
#EFEEF0
border
#CAC9CB
text
#0B0A0C
muted
#7C7C7D

Preview Lab

Preview with #5A5262

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

Preview Lab → · Contrast checker → · Palette generator →

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