#476012#476012

#476012 is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.3% C 0.106 H 126.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#476012
RGBrgb(71, 96, 18)
HSLhsl(79, 68%, 22%)
HSVhsv(79, 81%, 38%)
CMYKcmyk(26%, 0%, 81.3%, 62.4%)
CIE-LABlab(37.39, -21.63, 38.49)
CIE-LCHlch(37.39, 44.15, 119.34°)
OKLaboklab(45.29% -0.0625 0.0852)
OKLCHoklch(45.29% 0.106 126.3)
XYZxyz(6.8906, 9.7489, 2.0908)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476012 #2B1260
analogous
#605212 #476012 #206012
triadic
#476012 #124760 #601247
tetradic
#476012 #126052 #2B1260 #601220
square
#476012 #126052 #2B1260 #601220
split-complementary
#476012 #122060 #521260
monochromatic
#131A05 #212C08 #476012 #6D941C #93C725

Accessibility & contrast

On white

7.12
#476012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#476012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #476012
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476012#FFFFFF#000000##FFFFFF
##4760121.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655902
Deuteranopia (green-blind)
#62581A
Tritanopia (blue-blind)
#4A5B51
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #476012;
/* rgb */ color: rgb(71, 96, 18);
/* oklch */ color: oklch(45.3% 0.106 126.3);
Tailwind
colors: {
  custom: {
    50: '#7d8d57',
    500: '#476012',
    950: '#000000',
  },
}
SCSS
$custom: #476012;
$custom-light: #7d8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#476012",
  "rgb": {
    "r": 71,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 79.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.45291,
    "c": 0.10567,
    "h": 126.3
  },
  "luminance": 0.09749
}

Semantic roles & 50–950 ramp

primary
#476012
secondary
#553698
accent
#3DEB75
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #476012

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

Preview Lab → · Contrast checker → · Palette generator →

#476012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva