#52521F#52521F

#52521F is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.7% C 0.072 H 109.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#52521F
RGBrgb(82, 82, 31)
HSLhsl(60, 45%, 22%)
HSVhsv(60, 62%, 32%)
CMYKcmyk(0%, 0%, 62.2%, 67.8%)
CIE-LABlab(33.83, -7.79, 29.29)
CIE-LCHlch(33.83, 30.31, 104.89°)
OKLaboklab(42.69% -0.0234 0.0677)
OKLCHoklch(42.69% 0.072 109.1)
XYZxyz(6.7445, 7.9275, 2.4709)
Luminance0.0793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52521F #1F1F52
analogous
#52391F #52521F #39521F
triadic
#52521F #1F5252 #521F52
tetradic
#52521F #1F5239 #1F1F52 #521F39
square
#52521F #1F5239 #1F1F52 #521F39
split-complementary
#52521F #1F3952 #391F52
monochromatic
#161608 #26260E #52521F #7E7E30 #ABAB41

Accessibility & contrast

On white

8.12
#52521F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#52521F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52521F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52521F#FFFFFF#000000##FFFFFF
##52521F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F1A
Deuteranopia (green-blind)
#595022
Tritanopia (blue-blind)
#584D47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #52521f;
/* rgb */ color: rgb(82, 82, 31);
/* oklch */ color: oklch(42.7% 0.072 109.1);
Tailwind
colors: {
  custom: {
    50: '#84825d',
    500: '#52521f',
    950: '#000000',
  },
}
SCSS
$custom: #52521f;
$custom-light: #84825d;
$custom-dark: #000000;
JSON
{
  "hex": "#52521f",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42689,
    "c": 0.07162,
    "h": 109.1
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#52521F
secondary
#464687
accent
#53D553
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #52521F

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

Preview Lab → · Contrast checker → · Palette generator →

#52521F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva