#478D20#478D20

#478D20 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.6% C 0.157 H 136.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#478D20
RGBrgb(71, 141, 32)
HSLhsl(99, 63%, 34%)
HSVhsv(99, 77%, 55%)
CMYKcmyk(49.6%, 0%, 77.3%, 44.7%)
CIE-LABlab(52.39, -41.31, 47.91)
CIE-LCHlch(52.39, 63.26, 130.77°)
OKLaboklab(57.58% -0.1147 0.1072)
OKLCHoklch(57.58% 0.157 136.9)
XYZxyz(12.3837, 20.4928, 4.6692)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D20 #66208D
analogous
#7E8D20 #478D20 #208D30
triadic
#478D20 #20478D #8D2047
tetradic
#478D20 #207E8D #66208D #8D3020
square
#478D20 #207E8D #66208D #8D3020
split-complementary
#478D20 #30208D #8D207E
monochromatic
#152909 #2E5B15 #478D20 #60BF2B #80D750

Accessibility & contrast

On white

4.12
#478D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#478D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478D20
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478D20#FFFFFF#000000##000000
##478D201.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928107
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#438878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #478d20;
/* rgb */ color: rgb(71, 141, 32);
/* oklch */ color: oklch(57.6% 0.157 136.9);
Tailwind
colors: {
  custom: {
    50: '#81af64',
    500: '#478d20',
    950: '#000000',
  },
}
SCSS
$custom: #478d20;
$custom-light: #81af64;
$custom-dark: #000000;
JSON
{
  "hex": "#478d20",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 98.532,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57583,
    "c": 0.157,
    "h": 136.9
  },
  "luminance": 0.20494
}

Semantic roles & 50–950 ramp

primary
#478D20
secondary
#944EBA
accent
#42E6AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478D20

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

Preview Lab → · Contrast checker → · Palette generator →

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