#478012#478012

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

Color values

HEX#478012
RGBrgb(71, 128, 18)
HSLhsl(91, 75%, 29%)
HSVhsv(91, 86%, 50%)
CMYKcmyk(44.5%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.03, -36.65, 48.24)
CIE-LCHlch(48.03, 60.58, 127.23°)
OKLaboklab(53.98% -0.1031 0.1057)
OKLCHoklch(53.98% 0.148 134.3)
XYZxyz(10.4267, 16.8210, 3.2695)
Luminance0.1682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478012 #4B1280
analogous
#7E8012 #478012 #128014
triadic
#478012 #124780 #801247
tetradic
#478012 #127E80 #4B1280 #801412
square
#478012 #127E80 #4B1280 #801412
split-complementary
#478012 #141280 #80127E
monochromatic
#0F1B04 #294A0A #478012 #65B61A #83E12B

Accessibility & contrast

On white

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

On black

4.36
#478012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##478012#FFFFFF#000000##FFFFFF
##4780121.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #478012;
/* rgb */ color: rgb(71, 128, 18);
/* oklch */ color: oklch(54.0% 0.148 134.3);
Tailwind
colors: {
  custom: {
    50: '#80a55c',
    500: '#478012',
    950: '#000000',
  },
}
SCSS
$custom: #478012;
$custom-light: #80a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#478012",
  "rgb": {
    "r": 71,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 91.091,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53981,
    "c": 0.14764,
    "h": 134.3
  },
  "luminance": 0.16822
}

Semantic roles & 50–950 ramp

primary
#478012
secondary
#7938B6
accent
#36F297
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #478012

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

Preview Lab → · Contrast checker → · Palette generator →

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