#52841B#52841B

#52841B is a mid, vivid yellow-green. Relative luminance 0.184; OKLCH L 55.7% C 0.142 H 132.3°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#52841B
RGBrgb(82, 132, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 80%, 52%)
CMYKcmyk(37.9%, 0%, 79.5%, 48.2%)
CIE-LABlab(49.95, -33.92, 47.47)
CIE-LCHlch(49.95, 58.34, 125.55°)
OKLaboklab(55.71% -0.0959 0.1053)
OKLCHoklch(55.71% 0.142 132.3)
XYZxyz(11.9286, 18.3750, 3.9549)
Luminance0.1837 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52841B #4D1B84
analogous
#84811B #52841B #1E841B
triadic
#52841B #1B5284 #841B52
tetradic
#52841B #1B8481 #4D1B84 #841B1E
square
#52841B #1B8481 #4D1B84 #841B1E
split-complementary
#52841B #1B1E84 #811B84
monochromatic
#131E06 #325111 #52841B #72B725 #90D841

Accessibility & contrast

On white

4.49
#52841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#52841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52841B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52841B#FFFFFF#000000##000000
##52841B1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#537E70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #52841b;
/* rgb */ color: rgb(82, 132, 27);
/* oklch */ color: oklch(55.7% 0.142 132.3);
Tailwind
colors: {
  custom: {
    50: '#87a861',
    500: '#52841b',
    950: '#000000',
  },
}
SCSS
$custom: #52841b;
$custom-light: #87a861;
$custom-dark: #000000;
JSON
{
  "hex": "#52841b",
  "rgb": {
    "r": 82,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 88.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55714,
    "c": 0.1424,
    "h": 132.3
  },
  "luminance": 0.18375
}

Semantic roles & 50–950 ramp

primary
#52841B
secondary
#7B43B7
accent
#3FE990
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52841B

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

Preview Lab → · Contrast checker → · Palette generator →

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