#4A871C#4A871C

#4A871C is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.1% C 0.150 H 135.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4A871C
RGBrgb(74, 135, 28)
HSLhsl(94, 66%, 32%)
HSVhsv(94, 79%, 53%)
CMYKcmyk(45.2%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.53, -38.07, 47.54)
CIE-LCHlch(50.53, 60.91, 128.68°)
OKLaboklab(56.08% -0.1064 0.1058)
OKLCHoklch(56.08% 0.15 135.2)
XYZxyz(11.6973, 18.8669, 4.1237)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A871C #591C87
analogous
#80871C #4A871C #1C8724
triadic
#4A871C #1C4A87 #871C4A
tetradic
#4A871C #1C8087 #591C87 #87241C
square
#4A871C #1C8087 #591C87 #87241C
split-complementary
#4A871C #241C87 #871C80
monochromatic
#122207 #2E5411 #4A871C #66BA27 #84D845

Accessibility & contrast

On white

4.40
#4A871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#4A871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A871C
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A871C#FFFFFF#000000##000000
##4A871C1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B01
Deuteranopia (green-blind)
#847628
Tritanopia (blue-blind)
#488273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4a871c;
/* rgb */ color: rgb(74, 135, 28);
/* oklch */ color: oklch(56.1% 0.150 135.2);
Tailwind
colors: {
  custom: {
    50: '#82aa61',
    500: '#4a871c',
    950: '#000000',
  },
}
SCSS
$custom: #4a871c;
$custom-light: #82aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4a871c",
  "rgb": {
    "r": 74,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 94.206,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.15006,
    "h": 135.2
  },
  "luminance": 0.18868
}

Semantic roles & 50–950 ramp

primary
#4A871C
secondary
#8845BA
accent
#3FE9A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4A871C

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

Preview Lab → · Contrast checker → · Palette generator →

#4A871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva