#478C20#478C20

#478C20 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.3% C 0.156 H 136.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#478C20
RGBrgb(71, 140, 32)
HSLhsl(98, 63%, 34%)
HSVhsv(98, 77%, 55%)
CMYKcmyk(49.3%, 0%, 77.1%, 45.1%)
CIE-LABlab(52.06, -40.90, 47.59)
CIE-LCHlch(52.06, 62.75, 130.67°)
OKLaboklab(57.31% -0.1136 0.1065)
OKLCHoklch(57.31% 0.156 136.8)
XYZxyz(12.2370, 20.1992, 4.6202)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C20 #65208C
analogous
#7D8C20 #478C20 #208C2F
triadic
#478C20 #20478C #8C2047
tetradic
#478C20 #207D8C #65208C #8C2F20
square
#478C20 #207D8C #65208C #8C2F20
split-complementary
#478C20 #2F208C #8C207D
monochromatic
#142809 #2E5A15 #478C20 #60BE2B #80D750

Accessibility & contrast

On white

4.17
#478C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#478C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478C20
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478C20#FFFFFF#000000##000000
##478C201.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#438777
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c20;
/* rgb */ color: rgb(71, 140, 32);
/* oklch */ color: oklch(57.3% 0.156 136.8);
Tailwind
colors: {
  custom: {
    50: '#81ae64',
    500: '#478c20',
    950: '#000000',
  },
}
SCSS
$custom: #478c20;
$custom-light: #81ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#478c20",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 98.333,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57313,
    "c": 0.15573,
    "h": 136.8
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #478C20

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

Preview Lab → · Contrast checker → · Palette generator →

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