#475212#475212

#475212 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.5% C 0.087 H 118.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#475212
RGBrgb(71, 82, 18)
HSLhsl(70, 64%, 20%)
HSVhsv(70, 78%, 32%)
CMYKcmyk(13.4%, 0%, 78%, 67.8%)
CIE-LABlab(32.74, -14.09, 34.02)
CIE-LCHlch(32.74, 36.83, 112.49°)
OKLaboklab(41.54% -0.0418 0.0758)
OKLCHoklch(41.54% 0.087 118.9)
XYZxyz(5.7251, 7.4179, 1.7023)
Luminance0.0742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#475212 #1D1252
analogous
#523D12 #475212 #275212
triadic
#475212 #124752 #521247
tetradic
#475212 #12523D #1D1252 #521227
square
#475212 #12523D #1D1252 #521227
split-complementary
#475212 #122752 #3D1252
monochromatic
#161906 #1C2007 #475212 #72841D #9EB628

Accessibility & contrast

On white

8.46
#475212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#475212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #475212
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##475212#FFFFFF#000000##FFFFFF
##4752121.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#574D17
Tritanopia (blue-blind)
#4C4D46
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #475212;
/* rgb */ color: rgb(71, 82, 18);
/* oklch */ color: oklch(41.5% 0.087 118.9);
Tailwind
colors: {
  custom: {
    50: '#7c8255',
    500: '#475212',
    950: '#000000',
  },
}
SCSS
$custom: #475212;
$custom-light: #7c8255;
$custom-dark: #000000;
JSON
{
  "hex": "#475212",
  "rgb": {
    "r": 71,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 70.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.41535,
    "c": 0.08656,
    "h": 118.9
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#475212
secondary
#44358B
accent
#41E75D
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #475212

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

Preview Lab → · Contrast checker → · Palette generator →

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