#477A21#477A21

#477A21 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.5% C 0.131 H 134.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#477A21
RGBrgb(71, 122, 33)
HSLhsl(94, 57%, 30%)
HSVhsv(94, 73%, 48%)
CMYKcmyk(41.8%, 0%, 73%, 52.2%)
CIE-LABlab(46.13, -33.10, 41.28)
CIE-LCHlch(46.13, 52.91, 128.73°)
OKLaboklab(52.45% -0.0925 0.0935)
OKLCHoklch(52.45% 0.131 134.7)
XYZxyz(9.8324, 15.3680, 3.8868)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477A21 #54217A
analogous
#737A21 #477A21 #217A27
triadic
#477A21 #21477A #7A2147
tetradic
#477A21 #21737A #54217A #7A2721
square
#477A21 #21737A #54217A #7A2721
split-complementary
#477A21 #27217A #7A2173
monochromatic
#0F1A07 #2B4A14 #477A21 #63AA2E #81CD48

Accessibility & contrast

On white

5.16
#477A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#477A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477A21
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477A21#FFFFFF#000000##FFFFFF
##477A211.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7013
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#467568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #477a21;
/* rgb */ color: rgb(71, 122, 33);
/* oklch */ color: oklch(52.5% 0.131 134.7);
Tailwind
colors: {
  custom: {
    50: '#7fa162',
    500: '#477a21',
    950: '#000000',
  },
}
SCSS
$custom: #477a21;
$custom-light: #7fa162;
$custom-dark: #000000;
JSON
{
  "hex": "#477a21",
  "rgb": {
    "r": 71,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 94.382,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52452,
    "c": 0.13148,
    "h": 134.7
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#477A21
secondary
#834AAD
accent
#47E19F
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0A0F05
muted
#7C7E7A

Preview Lab

Preview with #477A21

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

Preview Lab → · Contrast checker → · Palette generator →

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