#478D18#478D18

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

Color values

HEX#478D18
RGBrgb(71, 141, 24)
HSLhsl(96, 71%, 32%)
HSVhsv(96, 83%, 55%)
CMYKcmyk(49.6%, 0%, 83%, 44.7%)
CIE-LABlab(52.35, -41.78, 50.45)
CIE-LCHlch(52.35, 65.51, 129.63°)
OKLaboklab(57.53% -0.1164 0.1113)
OKLCHoklch(57.53% 0.161 136.3)
XYZxyz(12.2879, 20.4545, 4.1646)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D18 #5E188D
analogous
#828D18 #478D18 #188D23
triadic
#478D18 #18478D #8D1847
tetradic
#478D18 #18828D #5E188D #8D2318
square
#478D18 #18828D #5E188D #8D2318
split-complementary
#478D18 #23188D #8D1882
monochromatic
#122406 #2D590F #478D18 #61C121 #80DF41

Accessibility & contrast

On white

4.12
#478D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##478D18#FFFFFF#000000##000000
##478D181.004.125.095.09
#FFFFFF4.121.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: #478d18;
/* rgb */ color: rgb(71, 141, 24);
/* oklch */ color: oklch(57.5% 0.161 136.3);
Tailwind
colors: {
  custom: {
    50: '#82af60',
    500: '#478d18',
    950: '#000000',
  },
}
SCSS
$custom: #478d18;
$custom-light: #82af60;
$custom-dark: #000000;
JSON
{
  "hex": "#478d18",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 95.897,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57534,
    "c": 0.16109,
    "h": 136.3
  },
  "luminance": 0.20455
}

Semantic roles & 50–950 ramp

primary
#478D18
secondary
#8D42BF
accent
#3AEEA6
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478D18

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

Preview Lab → · Contrast checker → · Palette generator →

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