#477C1F#477C1F

#477C1F is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.0% C 0.136 H 134.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#477C1F
RGBrgb(71, 124, 31)
HSLhsl(94, 60%, 30%)
HSVhsv(94, 75%, 49%)
CMYKcmyk(42.7%, 0%, 75%, 51.4%)
CIE-LABlab(46.78, -34.15, 42.73)
CIE-LCHlch(46.78, 54.70, 128.63°)
OKLaboklab(52.98% -0.0954 0.0962)
OKLCHoklch(52.98% 0.136 134.8)
XYZxyz(10.0533, 15.8533, 3.8263)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477C1F #541F7C
analogous
#757C1F #477C1F #1F7C26
triadic
#477C1F #1F477C #7C1F47
tetradic
#477C1F #1F757C #541F7C #7C261F
square
#477C1F #1F757C #541F7C #7C261F
split-complementary
#477C1F #261F7C #7C1F75
monochromatic
#0F1A07 #2B4B13 #477C1F #63AD2B #81D045

Accessibility & contrast

On white

5.04
#477C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#477C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477C1F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477C1F#FFFFFF#000000##FFFFFF
##477C1F1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#7A6D28
Tritanopia (blue-blind)
#46776A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #477c1f;
/* rgb */ color: rgb(71, 124, 31);
/* oklch */ color: oklch(53.0% 0.136 134.8);
Tailwind
colors: {
  custom: {
    50: '#7fa261',
    500: '#477c1f',
    950: '#000000',
  },
}
SCSS
$custom: #477c1f;
$custom-light: #7fa261;
$custom-dark: #000000;
JSON
{
  "hex": "#477c1f",
  "rgb": {
    "r": 71,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 94.194,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52978,
    "c": 0.13554,
    "h": 134.8
  },
  "luminance": 0.15854
}

Semantic roles & 50–950 ramp

primary
#477C1F
secondary
#8348AF
accent
#45E39F
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #477C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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