#477A1F#477A1F

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

Color values

HEX#477A1F
RGBrgb(71, 122, 31)
HSLhsl(94, 59%, 30%)
HSVhsv(94, 75%, 48%)
CMYKcmyk(41.8%, 0%, 74.6%, 52.2%)
CIE-LABlab(46.12, -33.26, 42.07)
CIE-LCHlch(46.12, 53.63, 128.33°)
OKLaboklab(52.44% -0.093 0.0948)
OKLCHoklch(52.44% 0.133 134.4)
XYZxyz(9.8052, 15.3571, 3.7436)
Luminance0.1536 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477A1F #521F7A
analogous
#757A1F #477A1F #1F7A24
triadic
#477A1F #1F477A #7A1F47
tetradic
#477A1F #1F757A #521F7A #7A241F
square
#477A1F #1F757A #521F7A #7A241F
split-complementary
#477A1F #241F7A #7A1F75
monochromatic
#0E1806 #2B4913 #477A1F #63AB2B #81CF44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##477A1F#FFFFFF#000000##FFFFFF
##477A1F1.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)
#7F700F
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#467568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #477a1f;
/* rgb */ color: rgb(71, 122, 31);
/* oklch */ color: oklch(52.4% 0.133 134.4);
Tailwind
colors: {
  custom: {
    50: '#7fa161',
    500: '#477a1f',
    950: '#000000',
  },
}
SCSS
$custom: #477a1f;
$custom-light: #7fa161;
$custom-dark: #000000;
JSON
{
  "hex": "#477a1f",
  "rgb": {
    "r": 71,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 93.626,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52436,
    "c": 0.13285,
    "h": 134.4
  },
  "luminance": 0.15358
}

Semantic roles & 50–950 ramp

primary
#477A1F
secondary
#8147AD
accent
#45E39D
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #477A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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