#525252#525252

#525252 is a dark, near-neutral grey. Relative luminance 0.084; OKLCH L 43.9% C 0.000 H 0.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#525252
RGBrgb(82, 82, 82)
HSLhsl(0, 0%, 32%)
HSVhsv(0, 0%, 32%)
CMYKcmyk(0%, 0%, 0%, 67.8%)
CIE-LABlab(34.88, 0.00, 0.00)
CIE-LCHlch(34.88, 0.00, 0.00°)
OKLaboklab(43.86% 0 0)
OKLCHoklch(43.86% 0 0)
XYZxyz(8.0197, 8.4376, 9.1871)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#525252 #525252
analogous
#525252 #525252 #525252
triadic
#525252 #525252 #525252
tetradic
#525252 #525252 #525252 #525252
square
#525252 #525252 #525252 #525252
split-complementary
#525252 #525252 #525252
monochromatic
#151515 #333333 #525252 #717171 #8F8F8F

Accessibility & contrast

On white

7.81
#525252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#525252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #525252
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##525252#FFFFFF#000000##FFFFFF
##5252521.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #525252;
/* rgb */ color: rgb(82, 82, 82);
/* oklch */ color: oklch(43.9% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#828282',
    500: '#525252',
    950: '#000000',
  },
}
SCSS
$custom: #525252;
$custom-light: #828282;
$custom-dark: #000000;
JSON
{
  "hex": "#525252",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 82
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4386,
    "c": 0,
    "h": 0
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#525252
secondary
#808080
accent
#A9A97E
background
#F7F7F7
surface
#EEEEEE
border
#C9C9C9
text
#0A0A0A
muted
#7C7C7C

Preview Lab

Preview with #525252

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

Preview Lab → · Contrast checker → · Palette generator →

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