#478A18#478A18

#478A18 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.7% C 0.157 H 136.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#478A18
RGBrgb(71, 138, 24)
HSLhsl(95, 70%, 32%)
HSVhsv(95, 83%, 54%)
CMYKcmyk(48.6%, 0%, 82.6%, 45.9%)
CIE-LABlab(51.36, -40.55, 49.55)
CIE-LCHlch(51.36, 64.03, 129.30°)
OKLaboklab(56.72% -0.1132 0.1094)
OKLCHoklch(56.72% 0.157 136)
XYZxyz(11.8516, 19.5817, 4.0191)
Luminance0.1958 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478A18 #5B188A
analogous
#808A18 #478A18 #188A22
triadic
#478A18 #18478A #8A1847
tetradic
#478A18 #18808A #5B188A #8A2218
square
#478A18 #18808A #5B188A #8A2218
split-complementary
#478A18 #22188A #8A1880
monochromatic
#112206 #2C560F #478A18 #62BE21 #80DE3F

Accessibility & contrast

On white

4.27
#478A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#478A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478A18
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478A18#FFFFFF#000000##000000
##478A181.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#448575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #478a18;
/* rgb */ color: rgb(71, 138, 24);
/* oklch */ color: oklch(56.7% 0.157 136.0);
Tailwind
colors: {
  custom: {
    50: '#81ad60',
    500: '#478a18',
    950: '#000000',
  },
}
SCSS
$custom: #478a18;
$custom-light: #81ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#478a18",
  "rgb": {
    "r": 71,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 95.263,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56723,
    "c": 0.15741,
    "h": 136
  },
  "luminance": 0.19582
}

Semantic roles & 50–950 ramp

primary
#478A18
secondary
#8A40BD
accent
#3BEDA4
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478A18

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

Preview Lab → · Contrast checker → · Palette generator →

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