#478D22#478D22

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

Color values

HEX#478D22
RGBrgb(71, 141, 34)
HSLhsl(99, 61%, 34%)
HSVhsv(99, 76%, 55%)
CMYKcmyk(49.6%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.40, -41.17, 47.20)
CIE-LCHlch(52.40, 62.63, 131.09°)
OKLaboklab(57.6% -0.1142 0.106)
OKLCHoklch(57.6% 0.156 137.1)
XYZxyz(12.4118, 20.5040, 4.8167)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D22 #68228D
analogous
#7D8D22 #478D22 #228D32
triadic
#478D22 #22478D #8D2247
tetradic
#478D22 #227D8D #68228D #8D3222
square
#478D22 #227D8D #68228D #8D3222
split-complementary
#478D22 #32228D #8D227D
monochromatic
#152A0A #2E5C16 #478D22 #60BE2E #81D654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478D22#FFFFFF#000000##000000
##478D221.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)
#92810C
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#438878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #478d22;
/* rgb */ color: rgb(71, 141, 34);
/* oklch */ color: oklch(57.6% 0.156 137.1);
Tailwind
colors: {
  custom: {
    50: '#81af65',
    500: '#478d22',
    950: '#000000',
  },
}
SCSS
$custom: #478d22;
$custom-light: #81af65;
$custom-dark: #000000;
JSON
{
  "hex": "#478d22",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 99.252,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57597,
    "c": 0.15582,
    "h": 137.1
  },
  "luminance": 0.20505
}

Semantic roles & 50–950 ramp

primary
#478D22
secondary
#9551B9
accent
#44E4AD
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478D22

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

Preview Lab → · Contrast checker → · Palette generator →

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