#47831B#47831B

#47831B is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.8% C 0.147 H 135.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#47831B
RGBrgb(71, 131, 27)
HSLhsl(95, 66%, 31%)
HSVhsv(95, 79%, 51%)
CMYKcmyk(45.8%, 0%, 79.4%, 48.6%)
CIE-LABlab(49.07, -37.46, 46.44)
CIE-LCHlch(49.07, 59.66, 128.89°)
OKLaboklab(54.85% -0.1047 0.1034)
OKLCHoklch(54.85% 0.147 135.4)
XYZxyz(10.9124, 17.6507, 3.8686)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47831B #571B83
analogous
#7B831B #47831B #1B8323
triadic
#47831B #1B4783 #831B47
tetradic
#47831B #1B7B83 #571B83 #83231B
square
#47831B #1B7B83 #571B83 #83231B
split-complementary
#47831B #231B83 #831B7B
monochromatic
#101E06 #2B5011 #47831B #63B625 #81D841

Accessibility & contrast

On white

4.64
#47831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#47831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #47831B
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47831B#FFFFFF#000000##FFFFFF
##47831B1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#457E70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #47831b;
/* rgb */ color: rgb(71, 131, 27);
/* oklch */ color: oklch(54.8% 0.147 135.4);
Tailwind
colors: {
  custom: {
    50: '#80a760',
    500: '#47831b',
    950: '#000000',
  },
}
SCSS
$custom: #47831b;
$custom-light: #80a760;
$custom-dark: #000000;
JSON
{
  "hex": "#47831b",
  "rgb": {
    "r": 71,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 94.615,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54846,
    "c": 0.1471,
    "h": 135.4
  },
  "luminance": 0.17651
}

Semantic roles & 50–950 ramp

primary
#47831B
secondary
#8643B6
accent
#3FE9A1
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #47831B

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

Preview Lab → · Contrast checker → · Palette generator →

#47831B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva