#477B18#477B18

#477B18 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.7% C 0.138 H 133.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#477B18
RGBrgb(71, 123, 24)
HSLhsl(92, 67%, 29%)
HSVhsv(92, 80%, 48%)
CMYKcmyk(42.3%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.41, -34.17, 44.92)
CIE-LCHlch(46.41, 56.44, 127.26°)
OKLaboklab(52.66% -0.096 0.0997)
OKLCHoklch(52.66% 0.138 133.9)
XYZxyz(9.8462, 15.5709, 3.3507)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477B18 #4C187B
analogous
#797B18 #477B18 #187B1B
triadic
#477B18 #18477B #7B1847
tetradic
#477B18 #18797B #4C187B #7B1B18
square
#477B18 #18797B #4C187B #7B1B18
split-complementary
#477B18 #1B187B #7B1879
monochromatic
#0F1A05 #29480E #477B18 #65AE22 #83D836

Accessibility & contrast

On white

5.10
#477B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#477B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477B18
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477B18#FFFFFF#000000##FFFFFF
##477B181.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#477669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #477b18;
/* rgb */ color: rgb(71, 123, 24);
/* oklch */ color: oklch(52.7% 0.138 133.9);
Tailwind
colors: {
  custom: {
    50: '#7fa15e',
    500: '#477b18',
    950: '#000000',
  },
}
SCSS
$custom: #477b18;
$custom-light: #7fa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#477b18",
  "rgb": {
    "r": 71,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 91.515,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.13841,
    "h": 133.9
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#477B18
secondary
#7A3FB0
accent
#3EEA98
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #477B18

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

Preview Lab → · Contrast checker → · Palette generator →

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