#52821D#52821D

#52821D is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.139 H 132.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#52821D
RGBrgb(82, 130, 29)
HSLhsl(89, 64%, 31%)
HSVhsv(89, 78%, 51%)
CMYKcmyk(36.9%, 0%, 77.7%, 49%)
CIE-LABlab(49.31, -32.90, 46.17)
CIE-LCHlch(49.31, 56.69, 125.48°)
OKLaboklab(55.2% -0.093 0.1029)
OKLCHoklch(55.2% 0.139 132.1)
XYZxyz(11.6839, 17.8473, 3.9914)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52821D #4D1D82
analogous
#827F1D #52821D #1F821D
triadic
#52821D #1D5282 #821D52
tetradic
#52821D #1D827F #4D1D82 #821D1F
square
#52821D #1D827F #4D1D82 #821D1F
split-complementary
#52821D #1D1F82 #7F1D82
monochromatic
#131E07 #325012 #52821D #72B428 #90D544

Accessibility & contrast

On white

4.60
#52821D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#52821D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #52821D
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52821D#FFFFFF#000000##FFFFFF
##52821D1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887806
Deuteranopia (green-blind)
#817427
Tritanopia (blue-blind)
#537C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #52821d;
/* rgb */ color: rgb(82, 130, 29);
/* oklch */ color: oklch(55.2% 0.139 132.1);
Tailwind
colors: {
  custom: {
    50: '#87a661',
    500: '#52821d',
    950: '#000000',
  },
}
SCSS
$custom: #52821d;
$custom-light: #87a661;
$custom-dark: #000000;
JSON
{
  "hex": "#52821d",
  "rgb": {
    "r": 82,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 88.515,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55197,
    "c": 0.13866,
    "h": 132.1
  },
  "luminance": 0.17848
}

Semantic roles & 50–950 ramp

primary
#52821D
secondary
#7B46B5
accent
#41E790
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52821D

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

Preview Lab → · Contrast checker → · Palette generator →

#52821D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva