#52771B#52771B

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

Color values

HEX#52771B
RGBrgb(82, 119, 27)
HSLhsl(84, 63%, 29%)
HSVhsv(84, 77%, 47%)
CMYKcmyk(31.1%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.72, -27.87, 43.42)
CIE-LCHlch(45.72, 51.60, 122.70°)
OKLaboklab(52.27% -0.0795 0.0968)
OKLCHoklch(52.27% 0.125 129.4)
XYZxyz(10.2743, 15.0663, 3.4035)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52771B #401B77
analogous
#776E1B #52771B #24771B
triadic
#52771B #1B5277 #771B52
tetradic
#52771B #1B776E #401B77 #771B24
square
#52771B #1B776E #401B77 #771B24
split-complementary
#52771B #1B2477 #6E1B77
monochromatic
#111906 #304510 #52771B #74A926 #95D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52771B#FFFFFF#000000##FFFFFF
##52771B1.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)
#7D6E08
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#557265
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #52771b;
/* rgb */ color: rgb(82, 119, 27);
/* oklch */ color: oklch(52.3% 0.125 129.4);
Tailwind
colors: {
  custom: {
    50: '#869e5f',
    500: '#52771b',
    950: '#000000',
  },
}
SCSS
$custom: #52771b;
$custom-light: #869e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#52771b",
  "rgb": {
    "r": 82,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 84.13,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5227,
    "c": 0.12526,
    "h": 129.4
  },
  "luminance": 0.15067
}

Semantic roles & 50–950 ramp

primary
#52771B
secondary
#6D42AB
accent
#42E684
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #52771B

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

Preview Lab → · Contrast checker → · Palette generator →

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