#476D17#476D17

#476D17 is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.8% C 0.120 H 130.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#476D17
RGBrgb(71, 109, 23)
HSLhsl(87, 65%, 26%)
HSVhsv(87, 79%, 43%)
CMYKcmyk(34.9%, 0%, 78.9%, 57.3%)
CIE-LABlab(41.75, -27.79, 40.83)
CIE-LCHlch(41.75, 49.39, 124.24°)
OKLaboklab(48.85% -0.0788 0.091)
OKLCHoklch(48.85% 0.12 130.9)
XYZxyz(8.2218, 12.3384, 2.7588)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476D17 #3D176D
analogous
#6D6817 #476D17 #1C6D17
triadic
#476D17 #17476D #6D1747
tetradic
#476D17 #176D68 #3D176D #6D171C
square
#476D17 #176D68 #3D176D #6D171C
split-complementary
#476D17 #171C6D #68176D
monochromatic
#101905 #263A0C #476D17 #68A022 #89D22C

Accessibility & contrast

On white

6.06
#476D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#476D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476D17
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476D17#FFFFFF#000000##FFFFFF
##476D171.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726405
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#49685D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #476d17;
/* rgb */ color: rgb(71, 109, 23);
/* oklch */ color: oklch(48.8% 0.120 130.9);
Tailwind
colors: {
  custom: {
    50: '#7e975b',
    500: '#476d17',
    950: '#000000',
  },
}
SCSS
$custom: #476d17;
$custom-light: #7e975b;
$custom-dark: #000000;
JSON
{
  "hex": "#476d17",
  "rgb": {
    "r": 71,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 86.512,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.12037,
    "h": 130.9
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#476D17
secondary
#6A3DA3
accent
#40E88A
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #476D17

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

Preview Lab → · Contrast checker → · Palette generator →

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