#52821E#52821E

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

Color values

HEX#52821E
RGBrgb(82, 130, 30)
HSLhsl(89, 63%, 31%)
HSVhsv(89, 77%, 51%)
CMYKcmyk(36.9%, 0%, 76.9%, 49%)
CIE-LABlab(49.32, -32.84, 45.81)
CIE-LCHlch(49.32, 56.36, 125.63°)
OKLaboklab(55.2% -0.0927 0.1023)
OKLCHoklch(55.2% 0.138 132.2)
XYZxyz(11.6965, 17.8524, 4.0576)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52821E #4E1E82
analogous
#82801E #52821E #20821E
triadic
#52821E #1E5282 #821E52
tetradic
#52821E #1E8280 #4E1E82 #821E20
square
#52821E #1E8280 #4E1E82 #821E20
split-complementary
#52821E #1E2082 #801E82
monochromatic
#131F07 #335013 #52821E #71B429 #90D446

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52821E#FFFFFF#000000##FFFFFF
##52821E1.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)
#887809
Deuteranopia (green-blind)
#817428
Tritanopia (blue-blind)
#537C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #52821e;
/* rgb */ color: rgb(82, 130, 30);
/* oklch */ color: oklch(55.2% 0.138 132.2);
Tailwind
colors: {
  custom: {
    50: '#87a662',
    500: '#52821e',
    950: '#000000',
  },
}
SCSS
$custom: #52821e;
$custom-light: #87a662;
$custom-dark: #000000;
JSON
{
  "hex": "#52821e",
  "rgb": {
    "r": 82,
    "g": 130,
    "b": 30
  },
  "hsl": {
    "h": 88.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55204,
    "c": 0.13807,
    "h": 132.2
  },
  "luminance": 0.17853
}

Semantic roles & 50–950 ramp

primary
#52821E
secondary
#7C47B5
accent
#42E691
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52821E

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

Preview Lab → · Contrast checker → · Palette generator →

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