#52811A#52811A

#52811A 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#52811A
RGBrgb(82, 129, 26)
HSLhsl(87, 66%, 30%)
HSVhsv(87, 80%, 51%)
CMYKcmyk(36.4%, 0%, 79.8%, 49.4%)
CIE-LABlab(48.97, -32.62, 46.88)
CIE-LCHlch(48.97, 57.11, 124.83°)
OKLaboklab(54.91% -0.0924 0.1039)
OKLCHoklch(54.91% 0.139 131.7)
XYZxyz(11.5163, 17.5685, 3.7614)
Luminance0.1757 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52811A #491A81
analogous
#817D1A #52811A #1E811A
triadic
#52811A #1A5281 #811A52
tetradic
#52811A #1A817D #491A81 #811A1E
square
#52811A #1A817D #491A81 #811A1E
split-complementary
#52811A #1A1E81 #7D1A81
monochromatic
#111B05 #324E10 #52811A #72B424 #91D83D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52811A#FFFFFF#000000##FFFFFF
##52811A1.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)
#877700
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#537B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #52811a;
/* rgb */ color: rgb(82, 129, 26);
/* oklch */ color: oklch(54.9% 0.139 131.7);
Tailwind
colors: {
  custom: {
    50: '#87a660',
    500: '#52811a',
    950: '#000000',
  },
}
SCSS
$custom: #52811a;
$custom-light: #87a660;
$custom-dark: #000000;
JSON
{
  "hex": "#52811a",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 87.379,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54912,
    "c": 0.13906,
    "h": 131.7
  },
  "luminance": 0.17569
}

Semantic roles & 50–950 ramp

primary
#52811A
secondary
#7642B5
accent
#3EE98C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #52811A

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

Preview Lab → · Contrast checker → · Palette generator →

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