#4A871D#4A871D

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

Color values

HEX#4A871D
RGBrgb(74, 135, 29)
HSLhsl(95, 65%, 32%)
HSVhsv(95, 79%, 53%)
CMYKcmyk(45.2%, 0%, 78.5%, 47.1%)
CIE-LABlab(50.54, -38.00, 47.21)
CIE-LCHlch(50.54, 60.61, 128.84°)
OKLaboklab(56.09% -0.1062 0.1052)
OKLCHoklch(56.09% 0.15 135.3)
XYZxyz(11.7095, 18.8718, 4.1878)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A871D #5A1D87
analogous
#7F871D #4A871D #1D8725
triadic
#4A871D #1D4A87 #871D4A
tetradic
#4A871D #1D7F87 #5A1D87 #87251D
square
#4A871D #1D7F87 #5A1D87 #87251D
split-complementary
#4A871D #251D87 #871D7F
monochromatic
#132207 #2E5512 #4A871D #66B928 #84D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A871D#FFFFFF#000000##000000
##4A871D1.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)
#8C7B03
Deuteranopia (green-blind)
#847628
Tritanopia (blue-blind)
#488273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4a871d;
/* rgb */ color: rgb(74, 135, 29);
/* oklch */ color: oklch(56.1% 0.150 135.3);
Tailwind
colors: {
  custom: {
    50: '#82aa62',
    500: '#4a871d',
    950: '#000000',
  },
}
SCSS
$custom: #4a871d;
$custom-light: #82aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#4a871d",
  "rgb": {
    "r": 74,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 94.528,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.14951,
    "h": 135.3
  },
  "luminance": 0.18873
}

Semantic roles & 50–950 ramp

primary
#4A871D
secondary
#8946B9
accent
#40E8A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4A871D

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

Preview Lab → · Contrast checker → · Palette generator →

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