#477B1F#477B1F

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

Color values

HEX#477B1F
RGBrgb(71, 123, 31)
HSLhsl(94, 60%, 30%)
HSVhsv(94, 75%, 48%)
CMYKcmyk(42.3%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.45, -33.70, 42.40)
CIE-LCHlch(46.45, 54.16, 128.48°)
OKLaboklab(52.71% -0.0942 0.0955)
OKLCHoklch(52.71% 0.134 134.6)
XYZxyz(9.9286, 15.6039, 3.7848)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477B1F #531F7B
analogous
#757B1F #477B1F #1F7B25
triadic
#477B1F #1F477B #7B1F47
tetradic
#477B1F #1F757B #531F7B #7B251F
square
#477B1F #1F757B #531F7B #7B251F
split-complementary
#477B1F #251F7B #7B1F75
monochromatic
#0F1906 #2B4A13 #477B1F #63AC2B #81D044

Accessibility & contrast

On white

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

On black

4.12
#477B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##477B1F#FFFFFF#000000##FFFFFF
##477B1F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710F
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#467669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #477b1f;
/* rgb */ color: rgb(71, 123, 31);
/* oklch */ color: oklch(52.7% 0.134 134.6);
Tailwind
colors: {
  custom: {
    50: '#7fa161',
    500: '#477b1f',
    950: '#000000',
  },
}
SCSS
$custom: #477b1f;
$custom-light: #7fa161;
$custom-dark: #000000;
JSON
{
  "hex": "#477b1f",
  "rgb": {
    "r": 71,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 93.913,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.13419,
    "h": 134.6
  },
  "luminance": 0.15604
}

Semantic roles & 50–950 ramp

primary
#477B1F
secondary
#8248AE
accent
#45E39E
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #477B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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