#478B17#478B17

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

Color values

HEX#478B17
RGBrgb(71, 139, 23)
HSLhsl(95, 72%, 32%)
HSVhsv(95, 83%, 55%)
CMYKcmyk(48.9%, 0%, 83.5%, 45.5%)
CIE-LABlab(51.69, -41.02, 50.14)
CIE-LCHlch(51.69, 64.78, 129.28°)
OKLaboklab(56.99% -0.1145 0.1105)
OKLCHoklch(56.99% 0.159 136)
XYZxyz(11.9855, 19.8659, 4.0134)
Luminance0.1987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B17 #5B178B
analogous
#818B17 #478B17 #178B21
triadic
#478B17 #17478B #8B1747
tetradic
#478B17 #17818B #5B178B #8B2117
square
#478B17 #17818B #5B178B #8B2117
split-complementary
#478B17 #21178B #8B1781
monochromatic
#112206 #2C560E #478B17 #62C020 #80DF3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478B17#FFFFFF#000000##000000
##478B171.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: #478b17;
/* rgb */ color: rgb(71, 139, 23);
/* oklch */ color: oklch(57.0% 0.159 136.0);
Tailwind
colors: {
  custom: {
    50: '#81ad60',
    500: '#478b17',
    950: '#000000',
  },
}
SCSS
$custom: #478b17;
$custom-light: #81ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#478b17",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 95.172,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56988,
    "c": 0.1591,
    "h": 136
  },
  "luminance": 0.19867
}

Semantic roles & 50–950 ramp

primary
#478B17
secondary
#8A3FBF
accent
#39EEA3
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478B17

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

Preview Lab → · Contrast checker → · Palette generator →

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