#478B18#478B18

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

Color values

HEX#478B18
RGBrgb(71, 139, 24)
HSLhsl(95, 71%, 32%)
HSVhsv(95, 83%, 55%)
CMYKcmyk(48.9%, 0%, 82.7%, 45.5%)
CIE-LABlab(51.69, -40.96, 49.85)
CIE-LCHlch(51.69, 64.52, 129.41°)
OKLaboklab(56.99% -0.1143 0.11)
OKLCHoklch(56.99% 0.159 136.1)
XYZxyz(11.9957, 19.8700, 4.0672)
Luminance0.1987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B18 #5C188B
analogous
#818B18 #478B18 #188B22
triadic
#478B18 #18478B #8B1847
tetradic
#478B18 #18818B #5C188B #8B2218
square
#478B18 #18818B #5C188B #8B2218
split-complementary
#478B18 #22188B #8B1881
monochromatic
#122306 #2C570F #478B18 #62BF21 #80DE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478B18#FFFFFF#000000##000000
##478B181.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)
#877926
Tritanopia (blue-blind)
#448676
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b18;
/* rgb */ color: rgb(71, 139, 24);
/* oklch */ color: oklch(57.0% 0.159 136.1);
Tailwind
colors: {
  custom: {
    50: '#81ad60',
    500: '#478b18',
    950: '#000000',
  },
}
SCSS
$custom: #478b18;
$custom-light: #81ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#478b18",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 95.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56993,
    "c": 0.15864,
    "h": 136.1
  },
  "luminance": 0.19871
}

Semantic roles & 50–950 ramp

primary
#478B18
secondary
#8B40BE
accent
#3AEDA4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478B18

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

Preview Lab → · Contrast checker → · Palette generator →

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