#477D1F#477D1F

#477D1F is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.2% C 0.137 H 134.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#477D1F
RGBrgb(71, 125, 31)
HSLhsl(94, 60%, 31%)
HSVhsv(94, 75%, 49%)
CMYKcmyk(43.2%, 0%, 75.2%, 51%)
CIE-LABlab(47.11, -34.59, 43.07)
CIE-LCHlch(47.11, 55.24, 128.77°)
OKLaboklab(53.25% -0.0966 0.0969)
OKLCHoklch(53.25% 0.137 134.9)
XYZxyz(10.1793, 16.1052, 3.8683)
Luminance0.1611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477D1F #551F7D
analogous
#767D1F #477D1F #1F7D26
triadic
#477D1F #1F477D #7D1F47
tetradic
#477D1F #1F767D #551F7D #7D261F
square
#477D1F #1F767D #551F7D #7D261F
split-complementary
#477D1F #261F7D #7D1F76
monochromatic
#0F1B07 #2B4C13 #477D1F #63AE2B #81D145

Accessibility & contrast

On white

4.97
#477D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#477D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477D1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477D1F#FFFFFF#000000##FFFFFF
##477D1F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720E
Deuteranopia (green-blind)
#7B6E28
Tritanopia (blue-blind)
#46786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #477d1f;
/* rgb */ color: rgb(71, 125, 31);
/* oklch */ color: oklch(53.2% 0.137 134.9);
Tailwind
colors: {
  custom: {
    50: '#7fa361',
    500: '#477d1f',
    950: '#000000',
  },
}
SCSS
$custom: #477d1f;
$custom-light: #7fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#477d1f",
  "rgb": {
    "r": 71,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 94.468,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53249,
    "c": 0.13687,
    "h": 134.9
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#477D1F
secondary
#8448B0
accent
#44E3A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #477D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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