#477D28#477D28

#477D28 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.3% C 0.130 H 136.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#477D28
RGBrgb(71, 125, 40)
HSLhsl(98, 52%, 32%)
HSVhsv(98, 68%, 49%)
CMYKcmyk(43.2%, 0%, 68%, 51%)
CIE-LABlab(47.18, -33.85, 39.37)
CIE-LCHlch(47.18, 51.92, 130.69°)
OKLaboklab(53.33% -0.0939 0.0904)
OKLCHoklch(53.33% 0.13 136.1)
XYZxyz(10.3149, 16.1595, 4.5826)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477D28 #5E287D
analogous
#717D28 #477D28 #287D34
triadic
#477D28 #28477D #7D2847
tetradic
#477D28 #28717D #5E287D #7D3428
square
#477D28 #28717D #5E287D #7D3428
split-complementary
#477D28 #34287D #7D2871
monochromatic
#12200A #2D4F19 #477D28 #61AB37 #80C956

Accessibility & contrast

On white

4.96
#477D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#477D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477D28
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477D28#FFFFFF#000000##FFFFFF
##477D281.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81731D
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#45786C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #477d28;
/* rgb */ color: rgb(71, 125, 40);
/* oklch */ color: oklch(53.3% 0.130 136.1);
Tailwind
colors: {
  custom: {
    50: '#7fa366',
    500: '#477d28',
    950: '#000000',
  },
}
SCSS
$custom: #477d28;
$custom-light: #7fa366;
$custom-dark: #000000;
JSON
{
  "hex": "#477d28",
  "rgb": {
    "r": 71,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 98.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53329,
    "c": 0.13039,
    "h": 136.1
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#477D28
secondary
#8D53AE
accent
#4DDBA7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #477D28

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

Preview Lab → · Contrast checker → · Palette generator →

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