#478B16#478B16

#478B16 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.0% C 0.160 H 135.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#478B16
RGBrgb(71, 139, 22)
HSLhsl(95, 73%, 32%)
HSVhsv(95, 84%, 55%)
CMYKcmyk(48.9%, 0%, 84.2%, 45.5%)
CIE-LABlab(51.68, -41.06, 50.42)
CIE-LCHlch(51.68, 65.03, 129.16°)
OKLaboklab(56.98% -0.1147 0.1109)
OKLCHoklch(56.98% 0.16 135.9)
XYZxyz(11.9757, 19.8620, 3.9616)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B16 #5A168B
analogous
#828B16 #478B16 #168B20
triadic
#478B16 #16478B #8B1647
tetradic
#478B16 #16828B #5A168B #8B2016
square
#478B16 #16828B #5A168B #8B2016
split-complementary
#478B16 #20168B #8B1682
monochromatic
#112105 #2C560E #478B16 #62C01E #80E03B

Accessibility & contrast

On white

4.22
#478B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#478B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478B16
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478B16#FFFFFF#000000##000000
##478B161.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#448676
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b16;
/* rgb */ color: rgb(71, 139, 22);
/* oklch */ color: oklch(57.0% 0.160 135.9);
Tailwind
colors: {
  custom: {
    50: '#81ad5f',
    500: '#478b16',
    950: '#000000',
  },
}
SCSS
$custom: #478b16;
$custom-light: #81ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#478b16",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 94.872,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56983,
    "c": 0.15954,
    "h": 135.9
  },
  "luminance": 0.19863
}

Semantic roles & 50–950 ramp

primary
#478B16
secondary
#893EBF
accent
#38EFA3
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478B16

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

Preview Lab → · Contrast checker → · Palette generator →

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