#476212#476212

#476212 is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.8% C 0.108 H 127.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#476212
RGBrgb(71, 98, 18)
HSLhsl(80, 69%, 23%)
HSVhsv(80, 82%, 38%)
CMYKcmyk(27.6%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.05, -22.66, 39.12)
CIE-LCHlch(38.05, 45.21, 120.08°)
OKLaboklab(45.83% -0.0653 0.0865)
OKLCHoklch(45.83% 0.108 127.1)
XYZxyz(7.0754, 10.1185, 2.1524)
Luminance0.1012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476212 #2D1262
analogous
#625512 #476212 #1F6212
triadic
#476212 #124762 #621247
tetradic
#476212 #126255 #2D1262 #62121F
square
#476212 #126255 #2D1262 #62121F
split-complementary
#476212 #121F62 #551262
monochromatic
#131A05 #222E09 #476212 #6C961B #92C925

Accessibility & contrast

On white

6.94
#476212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#476212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476212
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476212#FFFFFF#000000##FFFFFF
##4762121.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B01
Deuteranopia (green-blind)
#64591A
Tritanopia (blue-blind)
#4A5D53
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #476212;
/* rgb */ color: rgb(71, 98, 18);
/* oklch */ color: oklch(45.8% 0.108 127.1);
Tailwind
colors: {
  custom: {
    50: '#7d8e57',
    500: '#476212',
    950: '#000000',
  },
}
SCSS
$custom: #476212;
$custom-light: #7d8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#476212",
  "rgb": {
    "r": 71,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 80.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.45832,
    "c": 0.1084,
    "h": 127.1
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#476212
secondary
#58369A
accent
#3CEC77
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #476212

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

Preview Lab → · Contrast checker → · Palette generator →

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