#52872D#52872D

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

Color values

HEX#52872D
RGBrgb(82, 135, 45)
HSLhsl(95, 50%, 35%)
HSVhsv(95, 67%, 53%)
CMYKcmyk(39.3%, 0%, 66.7%, 47.1%)
CIE-LABlab(51.05, -33.94, 41.47)
CIE-LCHlch(51.05, 53.59, 129.30°)
OKLaboklab(56.66% -0.0945 0.0954)
OKLCHoklch(56.66% 0.134 134.7)
XYZxyz(12.6170, 19.3106, 5.5446)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52872D #622D87
analogous
#7F872D #52872D #2D8735
triadic
#52872D #2D5287 #872D52
tetradic
#52872D #2D7F87 #622D87 #87352D
square
#52872D #2D7F87 #622D87 #87352D
split-complementary
#52872D #352D87 #872D7F
monochromatic
#1A2B0E #36591E #52872D #6EB53C #8ECB63

Accessibility & contrast

On white

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

On black

4.86
#52872D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52872D
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52872D#FFFFFF#000000##000000
##52872D1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C22
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #52872d;
/* rgb */ color: rgb(82, 135, 45);
/* oklch */ color: oklch(56.7% 0.134 134.7);
Tailwind
colors: {
  custom: {
    50: '#87aa6a',
    500: '#52872d',
    950: '#000000',
  },
}
SCSS
$custom: #52872d;
$custom-light: #87aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#52872d",
  "rgb": {
    "r": 82,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 95.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56655,
    "c": 0.13428,
    "h": 134.7
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#52872D
secondary
#8F5EB2
accent
#4EDAA0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #52872D

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

Preview Lab → · Contrast checker → · Palette generator →

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