#477F12#477F12

#477F12 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.7% C 0.146 H 134.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#477F12
RGBrgb(71, 127, 18)
HSLhsl(91, 75%, 28%)
HSVhsv(91, 86%, 50%)
CMYKcmyk(44.1%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.70, -36.22, 47.94)
CIE-LCHlch(47.70, 60.09, 127.07°)
OKLaboklab(53.71% -0.1019 0.1051)
OKLCHoklch(53.71% 0.146 134.1)
XYZxyz(10.2969, 16.5614, 3.2263)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477F12 #4A127F
analogous
#7D7F12 #477F12 #127F14
triadic
#477F12 #12477F #7F1247
tetradic
#477F12 #127D7F #4A127F #7F1412
square
#477F12 #127D7F #4A127F #7F1412
split-complementary
#477F12 #14127F #7F127D
monochromatic
#0F1B04 #29490A #477F12 #65B51A #83E12B

Accessibility & contrast

On white

4.87
#477F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#477F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477F12
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477F12#FFFFFF#000000##FFFFFF
##477F121.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#467A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #477f12;
/* rgb */ color: rgb(71, 127, 18);
/* oklch */ color: oklch(53.7% 0.146 134.1);
Tailwind
colors: {
  custom: {
    50: '#80a45c',
    500: '#477f12',
    950: '#000000',
  },
}
SCSS
$custom: #477f12;
$custom-light: #80a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#477f12",
  "rgb": {
    "r": 71,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 90.826,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5371,
    "c": 0.1464,
    "h": 134.1
  },
  "luminance": 0.16562
}

Semantic roles & 50–950 ramp

primary
#477F12
secondary
#7838B5
accent
#36F296
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #477F12

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

Preview Lab → · Contrast checker → · Palette generator →

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