#47871F#47871F

#47871F is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.0% C 0.150 H 136.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#47871F
RGBrgb(71, 135, 31)
HSLhsl(97, 63%, 33%)
HSVhsv(97, 77%, 53%)
CMYKcmyk(47.4%, 0%, 77%, 47.1%)
CIE-LABlab(50.41, -38.89, 46.33)
CIE-LCHlch(50.41, 60.49, 130.01°)
OKLaboklab(55.96% -0.1083 0.1038)
OKLCHoklch(55.96% 0.15 136.2)
XYZxyz(11.5095, 18.7657, 4.3117)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47871F #5F1F87
analogous
#7B871F #47871F #1F872B
triadic
#47871F #1F4787 #871F47
tetradic
#47871F #1F7B87 #5F1F87 #872B1F
square
#47871F #1F7B87 #5F1F87 #872B1F
split-complementary
#47871F #2B1F87 #871F7B
monochromatic
#132308 #2D5514 #47871F #61B92A #80D64B

Accessibility & contrast

On white

4.42
#47871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#47871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #47871F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47871F#FFFFFF#000000##000000
##47871F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #47871f;
/* rgb */ color: rgb(71, 135, 31);
/* oklch */ color: oklch(56.0% 0.150 136.2);
Tailwind
colors: {
  custom: {
    50: '#81aa63',
    500: '#47871f',
    950: '#000000',
  },
}
SCSS
$custom: #47871f;
$custom-light: #81aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#47871f",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 96.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55955,
    "c": 0.14995,
    "h": 136.2
  },
  "luminance": 0.18766
}

Semantic roles & 50–950 ramp

primary
#47871F
secondary
#8E4AB8
accent
#42E6A7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #47871F

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

Preview Lab → · Contrast checker → · Palette generator →

#47871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva