#478D21#478D21

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

Color values

HEX#478D21
RGBrgb(71, 141, 33)
HSLhsl(99, 62%, 34%)
HSVhsv(99, 77%, 55%)
CMYKcmyk(49.6%, 0%, 76.6%, 44.7%)
CIE-LABlab(52.40, -41.24, 47.56)
CIE-LCHlch(52.40, 62.95, 130.93°)
OKLaboklab(57.59% -0.1144 0.1066)
OKLCHoklch(57.59% 0.156 137)
XYZxyz(12.3975, 20.4983, 4.7418)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D21 #67218D
analogous
#7D8D21 #478D21 #218D31
triadic
#478D21 #21478D #8D2147
tetradic
#478D21 #217D8D #67218D #8D3121
square
#478D21 #217D8D #67218D #8D3121
split-complementary
#478D21 #31218D #8D217D
monochromatic
#152A0A #2E5B15 #478D21 #60BF2D #81D652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478D21#FFFFFF#000000##000000
##478D211.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)
#92810A
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#438878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #478d21;
/* rgb */ color: rgb(71, 141, 33);
/* oklch */ color: oklch(57.6% 0.156 137.0);
Tailwind
colors: {
  custom: {
    50: '#81af64',
    500: '#478d21',
    950: '#000000',
  },
}
SCSS
$custom: #478d21;
$custom-light: #81af64;
$custom-dark: #000000;
JSON
{
  "hex": "#478d21",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 98.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5759,
    "c": 0.15642,
    "h": 137
  },
  "luminance": 0.20499
}

Semantic roles & 50–950 ramp

primary
#478D21
secondary
#9550BA
accent
#43E5AC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478D21

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

Preview Lab → · Contrast checker → · Palette generator →

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