#477D21#477D21

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

Color values

HEX#477D21
RGBrgb(71, 125, 33)
HSLhsl(95, 58%, 31%)
HSVhsv(95, 74%, 49%)
CMYKcmyk(43.2%, 0%, 73.6%, 51%)
CIE-LABlab(47.13, -34.44, 42.29)
CIE-LCHlch(47.13, 54.54, 129.16°)
OKLaboklab(53.26% -0.0961 0.0956)
OKLCHoklch(53.26% 0.136 135.1)
XYZxyz(10.2064, 16.1161, 4.0115)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477D21 #57217D
analogous
#757D21 #477D21 #217D29
triadic
#477D21 #21477D #7D2147
tetradic
#477D21 #21757D #57217D #7D2921
square
#477D21 #21757D #57217D #7D2921
split-complementary
#477D21 #29217D #7D2175
monochromatic
#101C07 #2B4D14 #477D21 #63AD2E #81CF49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##477D21#FFFFFF#000000##FFFFFF
##477D211.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)
#827312
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#46786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #477d21;
/* rgb */ color: rgb(71, 125, 33);
/* oklch */ color: oklch(53.3% 0.136 135.1);
Tailwind
colors: {
  custom: {
    50: '#7fa362',
    500: '#477d21',
    950: '#000000',
  },
}
SCSS
$custom: #477d21;
$custom-light: #7fa362;
$custom-dark: #000000;
JSON
{
  "hex": "#477d21",
  "rgb": {
    "r": 71,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 95.217,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53265,
    "c": 0.13554,
    "h": 135.1
  },
  "luminance": 0.16117
}

Semantic roles & 50–950 ramp

primary
#477D21
secondary
#864AB0
accent
#46E1A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #477D21

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

Preview Lab → · Contrast checker → · Palette generator →

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