#4A871F#4A871F

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

Color values

HEX#4A871F
RGBrgb(74, 135, 31)
HSLhsl(95, 63%, 33%)
HSVhsv(95, 77%, 53%)
CMYKcmyk(45.2%, 0%, 77%, 47.1%)
CIE-LABlab(50.55, -37.88, 46.51)
CIE-LCHlch(50.55, 59.98, 129.16°)
OKLaboklab(56.11% -0.1057 0.1041)
OKLCHoklch(56.11% 0.148 135.4)
XYZxyz(11.7351, 18.8820, 4.3223)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A871F #5C1F87
analogous
#7E871F #4A871F #1F8728
triadic
#4A871F #1F4A87 #871F4A
tetradic
#4A871F #1F7E87 #5C1F87 #87281F
square
#4A871F #1F7E87 #5C1F87 #87281F
split-complementary
#4A871F #281F87 #871F7E
monochromatic
#132308 #2F5514 #4A871F #65B92A #84D64B

Accessibility & contrast

On white

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

On black

4.78
#4A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A871F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A871F#FFFFFF#000000##000000
##4A871F1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B08
Deuteranopia (green-blind)
#84762A
Tritanopia (blue-blind)
#488273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4a871f;
/* rgb */ color: rgb(74, 135, 31);
/* oklch */ color: oklch(56.1% 0.148 135.4);
Tailwind
colors: {
  custom: {
    50: '#82aa63',
    500: '#4a871f',
    950: '#000000',
  },
}
SCSS
$custom: #4a871f;
$custom-light: #82aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#4a871f",
  "rgb": {
    "r": 74,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 95.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56105,
    "c": 0.14836,
    "h": 135.4
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

primary
#4A871F
secondary
#8A4AB8
accent
#42E6A2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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