#52821C#52821C

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

Color values

HEX#52821C
RGBrgb(82, 130, 28)
HSLhsl(88, 65%, 31%)
HSVhsv(88, 78%, 51%)
CMYKcmyk(36.9%, 0%, 78.5%, 49%)
CIE-LABlab(49.30, -32.96, 46.51)
CIE-LCHlch(49.30, 57.01, 125.32°)
OKLaboklab(55.19% -0.0932 0.1035)
OKLCHoklch(55.19% 0.139 132)
XYZxyz(11.6718, 17.8425, 3.9273)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52821C #4C1C82
analogous
#827F1C #52821C #1F821C
triadic
#52821C #1C5282 #821C52
tetradic
#52821C #1C827F #4C1C82 #821C1F
square
#52821C #1C827F #4C1C82 #821C1F
split-complementary
#52821C #1C1F82 #7F1C82
monochromatic
#121D06 #325011 #52821C #72B427 #91D642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52821C#FFFFFF#000000##FFFFFF
##52821C1.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)
#887804
Deuteranopia (green-blind)
#817427
Tritanopia (blue-blind)
#537C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #52821c;
/* rgb */ color: rgb(82, 130, 28);
/* oklch */ color: oklch(55.2% 0.139 132.0);
Tailwind
colors: {
  custom: {
    50: '#87a661',
    500: '#52821c',
    950: '#000000',
  },
}
SCSS
$custom: #52821c;
$custom-light: #87a661;
$custom-dark: #000000;
JSON
{
  "hex": "#52821c",
  "rgb": {
    "r": 82,
    "g": 130,
    "b": 28
  },
  "hsl": {
    "h": 88.235,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5519,
    "c": 0.13924,
    "h": 132
  },
  "luminance": 0.17843
}

Semantic roles & 50–950 ramp

primary
#52821C
secondary
#7A44B5
accent
#40E88F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52821C

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

Preview Lab → · Contrast checker → · Palette generator →

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