#477E1F#477E1F

#477E1F is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.5% C 0.138 H 135.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#477E1F
RGBrgb(71, 126, 31)
HSLhsl(95, 61%, 31%)
HSVhsv(95, 75%, 49%)
CMYKcmyk(43.7%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.44, -35.03, 43.40)
CIE-LCHlch(47.44, 55.77, 128.91°)
OKLaboklab(53.52% -0.0978 0.0976)
OKLCHoklch(53.52% 0.138 135.1)
XYZxyz(10.3065, 16.3597, 3.9107)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477E1F #561F7E
analogous
#767E1F #477E1F #1F7E26
triadic
#477E1F #1F477E #7E1F47
tetradic
#477E1F #1F767E #561F7E #7E261F
square
#477E1F #1F767E #561F7E #7E261F
split-complementary
#477E1F #261F7E #7E1F76
monochromatic
#101C07 #2B4D13 #477E1F #63AF2B #81D146

Accessibility & contrast

On white

4.92
#477E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#477E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477E1F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477E1F#FFFFFF#000000##FFFFFF
##477E1F1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#46796C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #477e1f;
/* rgb */ color: rgb(71, 126, 31);
/* oklch */ color: oklch(53.5% 0.138 135.1);
Tailwind
colors: {
  custom: {
    50: '#7fa461',
    500: '#477e1f',
    950: '#000000',
  },
}
SCSS
$custom: #477e1f;
$custom-light: #7fa461;
$custom-dark: #000000;
JSON
{
  "hex": "#477e1f",
  "rgb": {
    "r": 71,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 94.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53519,
    "c": 0.1382,
    "h": 135.1
  },
  "luminance": 0.1636
}

Semantic roles & 50–950 ramp

primary
#477E1F
secondary
#8548B1
accent
#44E4A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #477E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#477E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva