#476D1F#476D1F

#476D1F is a mid, moderate yellow-green. Relative luminance 0.124; OKLCH L 48.9% C 0.115 H 131.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#476D1F
RGBrgb(71, 109, 31)
HSLhsl(89, 56%, 27%)
HSVhsv(89, 72%, 43%)
CMYKcmyk(34.9%, 0%, 71.6%, 57.3%)
CIE-LABlab(41.81, -27.21, 37.65)
CIE-LCHlch(41.81, 46.45, 125.86°)
OKLaboklab(48.91% -0.0766 0.0856)
OKLCHoklch(48.91% 0.115 131.8)
XYZxyz(8.3144, 12.3755, 3.2467)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476D1F #451F6D
analogous
#6D6C1F #476D1F #206D1F
triadic
#476D1F #1F476D #6D1F47
tetradic
#476D1F #1F6D6C #451F6D #6D1F20
square
#476D1F #1F6D6C #451F6D #6D1F20
split-complementary
#476D1F #1F206D #6C1F6D
monochromatic
#101807 #283D11 #476D1F #669D2D #85C83E

Accessibility & contrast

On white

6.04
#476D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#476D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476D1F
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476D1F#FFFFFF#000000##FFFFFF
##476D1F1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726514
Deuteranopia (green-blind)
#6D6226
Tritanopia (blue-blind)
#48685D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #476d1f;
/* rgb */ color: rgb(71, 109, 31);
/* oklch */ color: oklch(48.9% 0.115 131.8);
Tailwind
colors: {
  custom: {
    50: '#7d975f',
    500: '#476d1f',
    950: '#000000',
  },
}
SCSS
$custom: #476d1f;
$custom-light: #7d975f;
$custom-dark: #000000;
JSON
{
  "hex": "#476d1f",
  "rgb": {
    "r": 71,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 89.231,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48914,
    "c": 0.11485,
    "h": 131.8
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#476D1F
secondary
#7347A1
accent
#49DF92
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0D05
muted
#7C7E79

Preview Lab

Preview with #476D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#476D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva