#52881F#52881F

#52881F is a mid, vivid yellow-green. Relative luminance 0.195; OKLCH L 56.8% C 0.145 H 133.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#52881F
RGBrgb(82, 136, 31)
HSLhsl(91, 63%, 33%)
HSVhsv(91, 77%, 53%)
CMYKcmyk(39.7%, 0%, 77.2%, 46.7%)
CIE-LABlab(51.27, -35.47, 47.35)
CIE-LCHlch(51.27, 59.16, 126.84°)
OKLaboklab(56.8% -0.0998 0.1057)
OKLCHoklch(56.8% 0.145 133.3)
XYZxyz(12.5310, 19.5005, 4.3998)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52881F #551F88
analogous
#86881F #52881F #1F8820
triadic
#52881F #1F5288 #881F52
tetradic
#52881F #1F8688 #551F88 #88201F
square
#52881F #1F8688 #551F88 #88201F
split-complementary
#52881F #201F88 #881F86
monochromatic
#162408 #345614 #52881F #70BA2A #8FD64B

Accessibility & contrast

On white

4.29
#52881F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#52881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52881F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52881F#FFFFFF#000000##000000
##52881F1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#86792A
Tritanopia (blue-blind)
#528274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #52881f;
/* rgb */ color: rgb(82, 136, 31);
/* oklch */ color: oklch(56.8% 0.145 133.3);
Tailwind
colors: {
  custom: {
    50: '#87ab63',
    500: '#52881f',
    950: '#000000',
  },
}
SCSS
$custom: #52881f;
$custom-light: #87ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#52881f",
  "rgb": {
    "r": 82,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 90.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.568,
    "c": 0.14533,
    "h": 133.3
  },
  "luminance": 0.19501
}

Semantic roles & 50–950 ramp

primary
#52881F
secondary
#834AB9
accent
#42E696
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #52881F

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

Preview Lab → · Contrast checker → · Palette generator →

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