#52872F#52872F

#52872F is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.7% C 0.133 H 135.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#52872F
RGBrgb(82, 135, 47)
HSLhsl(96, 48%, 36%)
HSVhsv(96, 65%, 53%)
CMYKcmyk(39.3%, 0%, 65.2%, 47.1%)
CIE-LABlab(51.07, -33.76, 40.59)
CIE-LCHlch(51.07, 52.79, 129.75°)
OKLaboklab(56.68% -0.0938 0.0938)
OKLCHoklch(56.68% 0.133 135)
XYZxyz(12.6565, 19.3264, 5.7523)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52872F #642F87
analogous
#7E872F #52872F #2F8738
triadic
#52872F #2F5287 #872F52
tetradic
#52872F #2F7E87 #642F87 #87382F
square
#52872F #2F7E87 #642F87 #87382F
split-complementary
#52872F #382F87 #872F7E
monochromatic
#1B2C0F #365A1F #52872F #6EB43F #8ECA66

Accessibility & contrast

On white

4.32
#52872F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#52872F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52872F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52872F#FFFFFF#000000##000000
##52872F1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C24
Deuteranopia (green-blind)
#857836
Tritanopia (blue-blind)
#518275
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #52872f;
/* rgb */ color: rgb(82, 135, 47);
/* oklch */ color: oklch(56.7% 0.133 135.0);
Tailwind
colors: {
  custom: {
    50: '#87aa6c',
    500: '#52872f',
    950: '#000000',
  },
}
SCSS
$custom: #52872f;
$custom-light: #87aa6c;
$custom-dark: #000000;
JSON
{
  "hex": "#52872f",
  "rgb": {
    "r": 82,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 96.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56676,
    "c": 0.13266,
    "h": 135
  },
  "luminance": 0.19327
}

Semantic roles & 50–950 ramp

primary
#52872F
secondary
#9161B1
accent
#50D8A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #52872F

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

Preview Lab → · Contrast checker → · Palette generator →

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