#476D18#476D18

#476D18 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 48.9% C 0.120 H 131.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#476D18
RGBrgb(71, 109, 24)
HSLhsl(87, 64%, 26%)
HSVhsv(87, 78%, 43%)
CMYKcmyk(34.9%, 0%, 78%, 57.3%)
CIE-LABlab(41.76, -27.72, 40.46)
CIE-LCHlch(41.76, 49.05, 124.42°)
OKLaboklab(48.86% -0.0786 0.0903)
OKLCHoklch(48.86% 0.12 131)
XYZxyz(8.2320, 12.3425, 2.8126)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476D18 #3E186D
analogous
#6D6818 #476D18 #1C6D18
triadic
#476D18 #18476D #6D1847
tetradic
#476D18 #186D68 #3E186D #6D181C
square
#476D18 #186D68 #3E186D #6D181C
split-complementary
#476D18 #181C6D #68186D
monochromatic
#101906 #263B0D #476D18 #689F23 #88D12E

Accessibility & contrast

On white

6.05
#476D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #476D18
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476D18#FFFFFF#000000##FFFFFF
##476D181.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #476d18;
/* rgb */ color: rgb(71, 109, 24);
/* oklch */ color: oklch(48.9% 0.120 131.0);
Tailwind
colors: {
  custom: {
    50: '#7e975c',
    500: '#476d18',
    950: '#000000',
  },
}
SCSS
$custom: #476d18;
$custom-light: #7e975c;
$custom-dark: #000000;
JSON
{
  "hex": "#476d18",
  "rgb": {
    "r": 71,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 86.824,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48855,
    "c": 0.11975,
    "h": 131
  },
  "luminance": 0.12343
}

Semantic roles & 50–950 ramp

primary
#476D18
secondary
#6B3EA3
accent
#41E78B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #476D18

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

Preview Lab → · Contrast checker → · Palette generator →

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