#52821F#52821F

#52821F is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.2% C 0.137 H 132.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#52821F
RGBrgb(82, 130, 31)
HSLhsl(89, 61%, 32%)
HSVhsv(89, 76%, 51%)
CMYKcmyk(36.9%, 0%, 76.2%, 49%)
CIE-LABlab(49.32, -32.77, 45.45)
CIE-LCHlch(49.32, 56.03, 125.79°)
OKLaboklab(55.21% -0.0925 0.1017)
OKLCHoklch(55.21% 0.137 132.3)
XYZxyz(11.7095, 17.8575, 4.1259)
Luminance0.1786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52821F #4F1F82
analogous
#82811F #52821F #20821F
triadic
#52821F #1F5282 #821F52
tetradic
#52821F #1F8281 #4F1F82 #821F20
square
#52821F #1F8281 #4F1F82 #821F20
split-complementary
#52821F #1F2082 #811F82
monochromatic
#141F07 #335113 #52821F #71B32B #90D348

Accessibility & contrast

On white

4.59
#52821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #52821F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52821F#FFFFFF#000000##FFFFFF
##52821F1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780B
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#537C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #52821f;
/* rgb */ color: rgb(82, 130, 31);
/* oklch */ color: oklch(55.2% 0.137 132.3);
Tailwind
colors: {
  custom: {
    50: '#87a662',
    500: '#52821f',
    950: '#000000',
  },
}
SCSS
$custom: #52821f;
$custom-light: #87a662;
$custom-dark: #000000;
JSON
{
  "hex": "#52821f",
  "rgb": {
    "r": 82,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 89.091,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55211,
    "c": 0.13746,
    "h": 132.3
  },
  "luminance": 0.17858
}

Semantic roles & 50–950 ramp

primary
#52821F
secondary
#7D48B5
accent
#43E591
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52821F

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

Preview Lab → · Contrast checker → · Palette generator →

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