#477A18#477A18

#477A18 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.137 H 133.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#477A18
RGBrgb(71, 122, 24)
HSLhsl(91, 67%, 29%)
HSVhsv(91, 80%, 48%)
CMYKcmyk(41.8%, 0%, 80.3%, 52.2%)
CIE-LABlab(46.07, -33.72, 44.61)
CIE-LCHlch(46.07, 55.92, 127.09°)
OKLaboklab(52.39% -0.0948 0.099)
OKLCHoklch(52.39% 0.137 133.7)
XYZxyz(9.7228, 15.3241, 3.3095)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477A18 #4B187A
analogous
#787A18 #477A18 #187A1A
triadic
#477A18 #18477A #7A1847
tetradic
#477A18 #18787A #4B187A #7A1A18
square
#477A18 #18787A #4B187A #7A1A18
split-complementary
#477A18 #1A187A #7A1878
monochromatic
#0F1A05 #29470E #477A18 #65AD22 #83D735

Accessibility & contrast

On white

5.17
#477A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#477A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477A18
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477A18#FFFFFF#000000##FFFFFF
##477A181.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#477568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #477a18;
/* rgb */ color: rgb(71, 122, 24);
/* oklch */ color: oklch(52.4% 0.137 133.7);
Tailwind
colors: {
  custom: {
    50: '#7fa15e',
    500: '#477a18',
    950: '#000000',
  },
}
SCSS
$custom: #477a18;
$custom-light: #7fa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#477a18",
  "rgb": {
    "r": 71,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 91.224,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52385,
    "c": 0.13711,
    "h": 133.7
  },
  "luminance": 0.15325
}

Semantic roles & 50–950 ramp

primary
#477A18
secondary
#793FAF
accent
#3EEA97
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #477A18

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

Preview Lab → · Contrast checker → · Palette generator →

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