#52771A#52771A

#52771A is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.3% C 0.126 H 129.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#52771A
RGBrgb(82, 119, 26)
HSLhsl(84, 64%, 28%)
HSVhsv(84, 78%, 47%)
CMYKcmyk(31.1%, 0%, 78.2%, 53.3%)
CIE-LABlab(45.72, -27.94, 43.78)
CIE-LCHlch(45.72, 51.94, 122.54°)
OKLaboklab(52.26% -0.0797 0.0974)
OKLCHoklch(52.26% 0.126 129.3)
XYZxyz(10.2629, 15.0618, 3.3436)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52771A #3F1A77
analogous
#776D1A #52771A #23771A
triadic
#52771A #1A5277 #771A52
tetradic
#52771A #1A776D #3F1A77 #771A23
square
#52771A #1A776D #3F1A77 #771A23
split-complementary
#52771A #1A2377 #6D1A77
monochromatic
#111905 #2F450F #52771A #75A925 #96D338

Accessibility & contrast

On white

5.23
#52771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#52771A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #52771A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52771A#FFFFFF#000000##FFFFFF
##52771A1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E05
Deuteranopia (green-blind)
#786B23
Tritanopia (blue-blind)
#557165
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #52771a;
/* rgb */ color: rgb(82, 119, 26);
/* oklch */ color: oklch(52.3% 0.126 129.3);
Tailwind
colors: {
  custom: {
    50: '#869e5e',
    500: '#52771a',
    950: '#000000',
  },
}
SCSS
$custom: #52771a;
$custom-light: #869e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#52771a",
  "rgb": {
    "r": 82,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 83.871,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52263,
    "c": 0.12588,
    "h": 129.3
  },
  "luminance": 0.15062
}

Semantic roles & 50–950 ramp

primary
#52771A
secondary
#6C41AC
accent
#41E783
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #52771A

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

Preview Lab → · Contrast checker → · Palette generator →

#52771A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva