#52811C#52811C

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

Color values

HEX#52811C
RGBrgb(82, 129, 28)
HSLhsl(88, 64%, 31%)
HSVhsv(88, 78%, 51%)
CMYKcmyk(36.4%, 0%, 78.3%, 49.4%)
CIE-LABlab(48.98, -32.50, 46.20)
CIE-LCHlch(48.98, 56.49, 125.13°)
OKLaboklab(54.93% -0.092 0.1028)
OKLCHoklch(54.93% 0.138 131.8)
XYZxyz(11.5394, 17.5777, 3.8832)
Luminance0.1758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52811C #4B1C81
analogous
#817D1C #52811C #1F811C
triadic
#52811C #1C5281 #811C52
tetradic
#52811C #1C817D #4B1C81 #811C1F
square
#52811C #1C817D #4B1C81 #811C1F
split-complementary
#52811C #1C1F81 #7D1C81
monochromatic
#121C06 #324F11 #52811C #72B327 #91D642

Accessibility & contrast

On white

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

On black

4.52
#52811C on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##52811C#FFFFFF#000000##FFFFFF
##52811C1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52811c;
/* rgb */ color: rgb(82, 129, 28);
/* oklch */ color: oklch(54.9% 0.138 131.8);
Tailwind
colors: {
  custom: {
    50: '#87a661',
    500: '#52811c',
    950: '#000000',
  },
}
SCSS
$custom: #52811c;
$custom-light: #87a661;
$custom-dark: #000000;
JSON
{
  "hex": "#52811c",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 28
  },
  "hsl": {
    "h": 87.921,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54925,
    "c": 0.13794,
    "h": 131.8
  },
  "luminance": 0.17578
}

Semantic roles & 50–950 ramp

primary
#52811C
secondary
#7944B4
accent
#40E78E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #52811C

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

Preview Lab → · Contrast checker → · Palette generator →

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