#478B22#478B22

#478B22 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.1% C 0.153 H 136.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#478B22
RGBrgb(71, 139, 34)
HSLhsl(99, 61%, 34%)
HSVhsv(99, 76%, 55%)
CMYKcmyk(48.9%, 0%, 75.5%, 45.5%)
CIE-LABlab(51.75, -40.35, 46.55)
CIE-LCHlch(51.75, 61.60, 130.92°)
OKLaboklab(57.06% -0.112 0.1047)
OKLCHoklch(57.06% 0.153 136.9)
XYZxyz(12.1195, 19.9195, 4.7193)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B22 #66228B
analogous
#7C8B22 #478B22 #228B32
triadic
#478B22 #22478B #8B2247
tetradic
#478B22 #227C8B #66228B #8B3222
square
#478B22 #227C8B #66228B #8B3222
split-complementary
#478B22 #32228B #8B227C
monochromatic
#15290A #2E5A16 #478B22 #60BC2E #80D553

Accessibility & contrast

On white

4.21
#478B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#478B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478B22
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478B22#FFFFFF#000000##000000
##478B221.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#438677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b22;
/* rgb */ color: rgb(71, 139, 34);
/* oklch */ color: oklch(57.1% 0.153 136.9);
Tailwind
colors: {
  custom: {
    50: '#81ad65',
    500: '#478b22',
    950: '#000000',
  },
}
SCSS
$custom: #478b22;
$custom-light: #81ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#478b22",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 98.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57057,
    "c": 0.15328,
    "h": 136.9
  },
  "luminance": 0.1992
}

Semantic roles & 50–950 ramp

primary
#478B22
secondary
#9450B8
accent
#44E4AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478B22

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

Preview Lab → · Contrast checker → · Palette generator →

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