#478D17#478D17

#478D17 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.5% C 0.162 H 136.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#478D17
RGBrgb(71, 141, 23)
HSLhsl(96, 72%, 32%)
HSVhsv(96, 84%, 55%)
CMYKcmyk(49.6%, 0%, 83.7%, 44.7%)
CIE-LABlab(52.34, -41.83, 50.74)
CIE-LCHlch(52.34, 65.76, 129.50°)
OKLaboklab(57.53% -0.1166 0.1118)
OKLCHoklch(57.53% 0.162 136.2)
XYZxyz(12.2777, 20.4504, 4.1108)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D17 #5D178D
analogous
#828D17 #478D17 #178D22
triadic
#478D17 #17478D #8D1747
tetradic
#478D17 #17828D #5D178D #8D2217
square
#478D17 #17828D #5D178D #8D2217
split-complementary
#478D17 #22178D #8D1782
monochromatic
#122406 #2D580E #478D17 #61C220 #80E03F

Accessibility & contrast

On white

4.13
#478D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#478D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478D17
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478D17#FFFFFF#000000##000000
##478D171.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#448878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #478d17;
/* rgb */ color: rgb(71, 141, 23);
/* oklch */ color: oklch(57.5% 0.162 136.2);
Tailwind
colors: {
  custom: {
    50: '#82af60',
    500: '#478d17',
    950: '#000000',
  },
}
SCSS
$custom: #478d17;
$custom-light: #82af60;
$custom-dark: #000000;
JSON
{
  "hex": "#478d17",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 95.593,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57529,
    "c": 0.16154,
    "h": 136.2
  },
  "luminance": 0.20451
}

Semantic roles & 50–950 ramp

primary
#478D17
secondary
#8C40C0
accent
#39EFA5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478D17

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

Preview Lab → · Contrast checker → · Palette generator →

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