#478222#478222

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

Color values

HEX#478222
RGBrgb(71, 130, 34)
HSLhsl(97, 59%, 32%)
HSVhsv(97, 74%, 51%)
CMYKcmyk(45.4%, 0%, 73.8%, 49%)
CIE-LABlab(48.78, -36.55, 43.58)
CIE-LCHlch(48.78, 56.87, 129.99°)
OKLaboklab(54.63% -0.1017 0.0984)
OKLCHoklch(54.63% 0.142 135.9)
XYZxyz(10.8696, 17.4197, 4.3027)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478222 #5D2282
analogous
#778222 #478222 #22822D
triadic
#478222 #224782 #822247
tetradic
#478222 #227782 #5D2282 #822D22
square
#478222 #227782 #5D2282 #822D22
split-complementary
#478222 #2D2282 #822277
monochromatic
#122109 #2D5115 #478222 #61B32F #80D14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478222#FFFFFF#000000##FFFFFF
##4782221.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)
#877712
Deuteranopia (green-blind)
#7F722B
Tritanopia (blue-blind)
#457D6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478222;
/* rgb */ color: rgb(71, 130, 34);
/* oklch */ color: oklch(54.6% 0.142 135.9);
Tailwind
colors: {
  custom: {
    50: '#80a764',
    500: '#478222',
    950: '#000000',
  },
}
SCSS
$custom: #478222;
$custom-light: #80a764;
$custom-dark: #000000;
JSON
{
  "hex": "#478222",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 96.875,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54626,
    "c": 0.14155,
    "h": 135.9
  },
  "luminance": 0.1742
}

Semantic roles & 50–950 ramp

primary
#478222
secondary
#8C4CB4
accent
#46E2A6
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478222

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

Preview Lab → · Contrast checker → · Palette generator →

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