#478B20#478B20

#478B20 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.0% C 0.154 H 136.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#478B20
RGBrgb(71, 139, 32)
HSLhsl(98, 63%, 34%)
HSVhsv(98, 77%, 55%)
CMYKcmyk(48.9%, 0%, 77%, 45.5%)
CIE-LABlab(51.73, -40.49, 47.27)
CIE-LCHlch(51.73, 62.24, 130.58°)
OKLaboklab(57.04% -0.1125 0.1059)
OKLCHoklch(57.04% 0.154 136.7)
XYZxyz(12.0915, 19.9083, 4.5718)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B20 #64208B
analogous
#7C8B20 #478B20 #208B2E
triadic
#478B20 #20478B #8B2047
tetradic
#478B20 #207C8B #64208B #8B2E20
square
#478B20 #207C8B #64208B #8B2E20
split-complementary
#478B20 #2E208B #8B207C
monochromatic
#142809 #2E5915 #478B20 #60BD2B #80D64F

Accessibility & contrast

On white

4.22
#478B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#478B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478B20
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478B20#FFFFFF#000000##000000
##478B201.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#438677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b20;
/* rgb */ color: rgb(71, 139, 32);
/* oklch */ color: oklch(57.0% 0.154 136.7);
Tailwind
colors: {
  custom: {
    50: '#81ad64',
    500: '#478b20',
    950: '#000000',
  },
}
SCSS
$custom: #478b20;
$custom-light: #81ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#478b20",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 98.131,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57043,
    "c": 0.15447,
    "h": 136.7
  },
  "luminance": 0.19909
}

Semantic roles & 50–950 ramp

primary
#478B20
secondary
#924DBA
accent
#42E6AA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478B20

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

Preview Lab → · Contrast checker → · Palette generator →

#478B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva