#52811B#52811B

#52811B is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.139 H 131.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#52811B
RGBrgb(82, 129, 27)
HSLhsl(88, 65%, 31%)
HSVhsv(88, 79%, 51%)
CMYKcmyk(36.4%, 0%, 79.1%, 49.4%)
CIE-LABlab(48.97, -32.56, 46.54)
CIE-LCHlch(48.97, 56.80, 124.98°)
OKLaboklab(54.92% -0.0922 0.1034)
OKLCHoklch(54.92% 0.139 131.7)
XYZxyz(11.5276, 17.5730, 3.8213)
Luminance0.1757 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52811B #4A1B81
analogous
#817D1B #52811B #1F811B
triadic
#52811B #1B5281 #811B52
tetradic
#52811B #1B817D #4A1B81 #811B1F
square
#52811B #1B817D #4A1B81 #811B1F
split-complementary
#52811B #1B1F81 #7D1B81
monochromatic
#121C06 #324E10 #52811B #72B426 #91D73F

Accessibility & contrast

On white

4.65
#52811B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#52811B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #52811B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52811B#FFFFFF#000000##FFFFFF
##52811B1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877702
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#537B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #52811b;
/* rgb */ color: rgb(82, 129, 27);
/* oklch */ color: oklch(54.9% 0.139 131.7);
Tailwind
colors: {
  custom: {
    50: '#87a660',
    500: '#52811b',
    950: '#000000',
  },
}
SCSS
$custom: #52811b;
$custom-light: #87a660;
$custom-dark: #000000;
JSON
{
  "hex": "#52811b",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 87.647,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54919,
    "c": 0.13851,
    "h": 131.7
  },
  "luminance": 0.17573
}

Semantic roles & 50–950 ramp

primary
#52811B
secondary
#7743B5
accent
#3FE88D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #52811B

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

Preview Lab → · Contrast checker → · Palette generator →

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