#478221#478221

#478221 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.6% C 0.142 H 135.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#478221
RGBrgb(71, 130, 33)
HSLhsl(96, 60%, 32%)
HSVhsv(96, 75%, 51%)
CMYKcmyk(45.4%, 0%, 74.6%, 49%)
CIE-LABlab(48.78, -36.62, 43.96)
CIE-LCHlch(48.78, 57.22, 129.80°)
OKLaboklab(54.62% -0.102 0.0991)
OKLCHoklch(54.62% 0.142 135.8)
XYZxyz(10.8554, 17.4140, 4.2278)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478221 #5C2182
analogous
#788221 #478221 #21822C
triadic
#478221 #214782 #822147
tetradic
#478221 #217882 #5C2182 #822C21
square
#478221 #217882 #5C2182 #822C21
split-complementary
#478221 #2C2182 #822178
monochromatic
#122008 #2C5115 #478221 #62B32D #80D24C

Accessibility & contrast

On white

4.68
#478221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#478221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478221
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478221#FFFFFF#000000##FFFFFF
##4782211.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877710
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#457D6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478221;
/* rgb */ color: rgb(71, 130, 33);
/* oklch */ color: oklch(54.6% 0.142 135.8);
Tailwind
colors: {
  custom: {
    50: '#80a763',
    500: '#478221',
    950: '#000000',
  },
}
SCSS
$custom: #478221;
$custom-light: #80a763;
$custom-dark: #000000;
JSON
{
  "hex": "#478221",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 96.495,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54618,
    "c": 0.14221,
    "h": 135.8
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#478221
secondary
#8B4AB4
accent
#45E3A5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478221

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

Preview Lab → · Contrast checker → · Palette generator →

#478221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva