#476D21#476D21

#476D21 is a mid, moderate yellow-green. Relative luminance 0.124; OKLCH L 48.9% C 0.113 H 132.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#476D21
RGBrgb(71, 109, 33)
HSLhsl(90, 54%, 28%)
HSVhsv(90, 70%, 43%)
CMYKcmyk(34.9%, 0%, 69.7%, 57.3%)
CIE-LABlab(41.82, -27.04, 36.78)
CIE-LCHlch(41.82, 45.65, 126.33°)
OKLaboklab(48.93% -0.076 0.084)
OKLCHoklch(48.93% 0.113 132.1)
XYZxyz(8.3416, 12.3864, 3.3899)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476D21 #47216D
analogous
#6D6D21 #476D21 #216D21
triadic
#476D21 #21476D #6D2147
tetradic
#476D21 #216D6D #47216D #6D2121
square
#476D21 #216D6D #47216D #6D2121
split-complementary
#476D21 #21216D #6D216D
monochromatic
#0F1707 #283E13 #476D21 #669C2F #84C642

Accessibility & contrast

On white

6.04
#476D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#476D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476D21
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476D21#FFFFFF#000000##FFFFFF
##476D211.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726517
Deuteranopia (green-blind)
#6C6227
Tritanopia (blue-blind)
#48685D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #476d21;
/* rgb */ color: rgb(71, 109, 33);
/* oklch */ color: oklch(48.9% 0.113 132.1);
Tailwind
colors: {
  custom: {
    50: '#7d9761',
    500: '#476d21',
    950: '#000000',
  },
}
SCSS
$custom: #476d21;
$custom-light: #7d9761;
$custom-dark: #000000;
JSON
{
  "hex": "#476d21",
  "rgb": {
    "r": 71,
    "g": 109,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48933,
    "c": 0.11328,
    "h": 132.1
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#476D21
secondary
#7549A1
accent
#4BDD94
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0D05
muted
#7C7E79

Preview Lab

Preview with #476D21

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

Preview Lab → · Contrast checker → · Palette generator →

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