#477F21#477F21

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

Color values

HEX#477F21
RGBrgb(71, 127, 33)
HSLhsl(96, 59%, 31%)
HSVhsv(96, 74%, 50%)
CMYKcmyk(44.1%, 0%, 74%, 50.2%)
CIE-LABlab(47.79, -35.32, 42.96)
CIE-LCHlch(47.79, 55.62, 129.43°)
OKLaboklab(53.81% -0.0985 0.097)
OKLCHoklch(53.81% 0.138 135.4)
XYZxyz(10.4622, 16.6275, 4.0967)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477F21 #59217F
analogous
#767F21 #477F21 #217F2A
triadic
#477F21 #21477F #7F2147
tetradic
#477F21 #21767F #59217F #7F2A21
square
#477F21 #21767F #59217F #7F2A21
split-complementary
#477F21 #2A217F #7F2176
monochromatic
#111E08 #2C4E14 #477F21 #62B02E #80D04A

Accessibility & contrast

On white

4.85
#477F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#477F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477F21
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477F21#FFFFFF#000000##FFFFFF
##477F211.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847411
Deuteranopia (green-blind)
#7C702A
Tritanopia (blue-blind)
#457A6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #477f21;
/* rgb */ color: rgb(71, 127, 33);
/* oklch */ color: oklch(53.8% 0.138 135.4);
Tailwind
colors: {
  custom: {
    50: '#7fa463',
    500: '#477f21',
    950: '#000000',
  },
}
SCSS
$custom: #477f21;
$custom-light: #7fa463;
$custom-dark: #000000;
JSON
{
  "hex": "#477f21",
  "rgb": {
    "r": 71,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 95.745,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.13822,
    "h": 135.4
  },
  "luminance": 0.16628
}

Semantic roles & 50–950 ramp

primary
#477F21
secondary
#884AB2
accent
#46E2A3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #477F21

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

Preview Lab → · Contrast checker → · Palette generator →

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