#478018#478018

#478018 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.0% C 0.145 H 134.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#478018
RGBrgb(71, 128, 24)
HSLhsl(93, 68%, 30%)
HSVhsv(93, 81%, 50%)
CMYKcmyk(44.5%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.06, -36.35, 46.48)
CIE-LCHlch(48.06, 59.01, 128.03°)
OKLaboklab(54.01% -0.1019 0.103)
OKLCHoklch(54.01% 0.145 134.7)
XYZxyz(10.4824, 16.8433, 3.5627)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478018 #511880
analogous
#7B8018 #478018 #18801D
triadic
#478018 #184780 #801847
tetradic
#478018 #187B80 #511880 #801D18
square
#478018 #187B80 #511880 #801D18
split-complementary
#478018 #1D1880 #80187B
monochromatic
#0E1A05 #2A4C0E #478018 #64B422 #81DA39

Accessibility & contrast

On white

4.81
#478018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#478018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478018
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478018#FFFFFF#000000##FFFFFF
##4780181.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#467B6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #478018;
/* rgb */ color: rgb(71, 128, 24);
/* oklch */ color: oklch(54.0% 0.145 134.7);
Tailwind
colors: {
  custom: {
    50: '#80a55e',
    500: '#478018',
    950: '#000000',
  },
}
SCSS
$custom: #478018;
$custom-light: #80a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#478018",
  "rgb": {
    "r": 71,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 92.885,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.14485,
    "h": 134.7
  },
  "luminance": 0.16844
}

Semantic roles & 50–950 ramp

primary
#478018
secondary
#8040B4
accent
#3DEB9C
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #478018

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

Preview Lab → · Contrast checker → · Palette generator →

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