#505252#505252

#505252 is a dark, near-neutral grey. Relative luminance 0.083; OKLCH L 43.7% C 0.003 H 197.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#505252
RGBrgb(80, 82, 82)
HSLhsl(180, 1%, 32%)
HSVhsv(180, 2%, 32%)
CMYKcmyk(2.4%, 0%, 0%, 67.8%)
CIE-LABlab(34.70, -0.80, -0.28)
CIE-LCHlch(34.70, 0.85, 199.30°)
OKLaboklab(43.68% -0.0025 -0.0008)
OKLCHoklch(43.68% 0.003 197)
XYZxyz(7.8483, 8.3492, 9.1791)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505252 #525050
analogous
#505251 #505252 #505152
triadic
#505252 #525052 #525250
tetradic
#505252 #515052 #525050 #515250
square
#505252 #515052 #525050 #515250
split-complementary
#505252 #525051 #525150
monochromatic
#141414 #323333 #505252 #6E7171 #8D9090

Accessibility & contrast

On white

7.87
#505252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#505252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505252
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505252#FFFFFF#000000##FFFFFF
##5052521.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525252
Deuteranopia (green-blind)
#515152
Tritanopia (blue-blind)
#4F5252
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #505252;
/* rgb */ color: rgb(80, 82, 82);
/* oklch */ color: oklch(43.7% 0.003 197.0);
Tailwind
colors: {
  custom: {
    50: '#818282',
    500: '#505252',
    950: '#000000',
  },
}
SCSS
$custom: #505252;
$custom-light: #818282;
$custom-dark: #000000;
JSON
{
  "hex": "#505252",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 82
  },
  "hsl": {
    "h": 180,
    "s": 1.235,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43676,
    "c": 0.00259,
    "h": 197
  },
  "luminance": 0.08349
}

Semantic roles & 50–950 ramp

primary
#505252
secondary
#807E7E
accent
#7D7DAB
background
#F7F7F7
surface
#EEEEEE
border
#C9C9C9
text
#0A0A0A
muted
#7C7C7C

Preview Lab

Preview with #505252

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

Preview Lab → · Contrast checker → · Palette generator →

#505252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva