#477F1F#477F1F

#477F1F is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.8% C 0.140 H 135.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#477F1F
RGBrgb(71, 127, 31)
HSLhsl(95, 61%, 31%)
HSVhsv(95, 76%, 50%)
CMYKcmyk(44.1%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.77, -35.47, 43.73)
CIE-LCHlch(47.77, 56.30, 129.05°)
OKLaboklab(53.79% -0.099 0.0983)
OKLCHoklch(53.79% 0.14 135.2)
XYZxyz(10.4350, 16.6167, 3.9536)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477F1F #571F7F
analogous
#777F1F #477F1F #1F7F27
triadic
#477F1F #1F477F #7F1F47
tetradic
#477F1F #1F777F #571F7F #7F271F
square
#477F1F #1F777F #571F7F #7F271F
split-complementary
#477F1F #271F7F #7F1F77
monochromatic
#101D07 #2B4E13 #477F1F #63B02B #81D246

Accessibility & contrast

On white

4.86
#477F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#477F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477F1F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477F1F#FFFFFF#000000##FFFFFF
##477F1F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7C7028
Tritanopia (blue-blind)
#457A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #477f1f;
/* rgb */ color: rgb(71, 127, 31);
/* oklch */ color: oklch(53.8% 0.140 135.2);
Tailwind
colors: {
  custom: {
    50: '#7fa462',
    500: '#477f1f',
    950: '#000000',
  },
}
SCSS
$custom: #477f1f;
$custom-light: #7fa462;
$custom-dark: #000000;
JSON
{
  "hex": "#477f1f",
  "rgb": {
    "r": 71,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 95,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.13953,
    "h": 135.2
  },
  "luminance": 0.16617
}

Semantic roles & 50–950 ramp

primary
#477F1F
secondary
#8648B2
accent
#44E4A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #477F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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