#478418#478418

#478418 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.1% C 0.150 H 135.2°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#478418
RGBrgb(71, 132, 24)
HSLhsl(94, 69%, 31%)
HSVhsv(94, 82%, 52%)
CMYKcmyk(46.2%, 0%, 81.8%, 48.2%)
CIE-LABlab(49.38, -38.06, 47.72)
CIE-LCHlch(49.38, 61.03, 128.57°)
OKLaboklab(55.1% -0.1065 0.1056)
OKLCHoklch(55.1% 0.15 135.2)
XYZxyz(11.0144, 17.9074, 3.7401)
Luminance0.1791 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478418 #551884
analogous
#7D8418 #478418 #18841F
triadic
#478418 #184784 #841847
tetradic
#478418 #187D84 #551884 #841F18
square
#478418 #187D84 #551884 #841F18
split-complementary
#478418 #1F1884 #84187D
monochromatic
#0F1C05 #2B500F #478418 #63B821 #81DB3B

Accessibility & contrast

On white

4.58
#478418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#478418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478418
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478418#FFFFFF#000000##000000
##4784181.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#817424
Tritanopia (blue-blind)
#457F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #478418;
/* rgb */ color: rgb(71, 132, 24);
/* oklch */ color: oklch(55.1% 0.150 135.2);
Tailwind
colors: {
  custom: {
    50: '#80a85f',
    500: '#478418',
    950: '#000000',
  },
}
SCSS
$custom: #478418;
$custom-light: #80a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#478418",
  "rgb": {
    "r": 71,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 93.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55098,
    "c": 0.14993,
    "h": 135.2
  },
  "luminance": 0.17908
}

Semantic roles & 50–950 ramp

primary
#478418
secondary
#8440B8
accent
#3CEC9F
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478418

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

Preview Lab → · Contrast checker → · Palette generator →

#478418 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva