#478F20#478F20

#478F20 is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.1% C 0.160 H 137.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#478F20
RGBrgb(71, 143, 32)
HSLhsl(99, 63%, 34%)
HSVhsv(99, 78%, 56%)
CMYKcmyk(50.3%, 0%, 77.6%, 43.9%)
CIE-LABlab(53.05, -42.12, 48.55)
CIE-LCHlch(53.05, 64.27, 130.94°)
OKLaboklab(58.12% -0.1169 0.1085)
OKLCHoklch(58.12% 0.16 137.1)
XYZxyz(12.6813, 21.0879, 4.7684)
Luminance0.2109 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478F20 #68208F
analogous
#7F8F20 #478F20 #208F31
triadic
#478F20 #20478F #8F2047
tetradic
#478F20 #207F8F #68208F #8F3120
square
#478F20 #207F8F #68208F #8F3120
split-complementary
#478F20 #31208F #8F207F
monochromatic
#152B0A #2E5D15 #478F20 #60C12B #81D851

Accessibility & contrast

On white

4.02
#478F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#478F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478F20
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478F20#FFFFFF#000000##000000
##478F201.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#8B7C2C
Tritanopia (blue-blind)
#438A7A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #478f20;
/* rgb */ color: rgb(71, 143, 32);
/* oklch */ color: oklch(58.1% 0.160 137.1);
Tailwind
colors: {
  custom: {
    50: '#82b064',
    500: '#478f20',
    950: '#000000',
  },
}
SCSS
$custom: #478f20;
$custom-light: #82b064;
$custom-dark: #000000;
JSON
{
  "hex": "#478f20",
  "rgb": {
    "r": 71,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 98.919,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58122,
    "c": 0.1595,
    "h": 137.1
  },
  "luminance": 0.21089
}

Semantic roles & 50–950 ramp

primary
#478F20
secondary
#954FBB
accent
#41E6AC
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478F20

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

Preview Lab → · Contrast checker → · Palette generator →

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