#4A871B#4A871B

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

Color values

HEX#4A871B
RGBrgb(74, 135, 27)
HSLhsl(94, 67%, 32%)
HSVhsv(94, 80%, 53%)
CMYKcmyk(45.2%, 0%, 80%, 47.1%)
CIE-LABlab(50.53, -38.13, 47.87)
CIE-LCHlch(50.53, 61.20, 128.53°)
OKLaboklab(56.08% -0.1067 0.1063)
OKLCHoklch(56.08% 0.151 135.1)
XYZxyz(11.6856, 18.8622, 4.0617)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A871B #581B87
analogous
#80871B #4A871B #1B8722
triadic
#4A871B #1B4A87 #871B4A
tetradic
#4A871B #1B8087 #581B87 #87221B
square
#4A871B #1B8087 #581B87 #87221B
split-complementary
#4A871B #221B87 #871B80
monochromatic
#122107 #2E5411 #4A871B #66BA25 #84D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A871B#FFFFFF#000000##000000
##4A871B1.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)
#8C7B00
Deuteranopia (green-blind)
#847627
Tritanopia (blue-blind)
#488273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4a871b;
/* rgb */ color: rgb(74, 135, 27);
/* oklch */ color: oklch(56.1% 0.151 135.1);
Tailwind
colors: {
  custom: {
    50: '#83aa61',
    500: '#4a871b',
    950: '#000000',
  },
}
SCSS
$custom: #4a871b;
$custom-light: #83aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4a871b",
  "rgb": {
    "r": 74,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 93.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56079,
    "c": 0.15059,
    "h": 135.1
  },
  "luminance": 0.18863
}

Semantic roles & 50–950 ramp

primary
#4A871B
secondary
#8744BA
accent
#3EEA9F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4A871B

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

Preview Lab → · Contrast checker → · Palette generator →

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