#478E1F#478E1F

#478E1F is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.8% C 0.159 H 136.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#478E1F
RGBrgb(71, 142, 31)
HSLhsl(98, 64%, 34%)
HSVhsv(98, 78%, 56%)
CMYKcmyk(50%, 0%, 78.2%, 44.3%)
CIE-LABlab(52.71, -41.78, 48.57)
CIE-LCHlch(52.71, 64.07, 130.70°)
OKLaboklab(57.85% -0.116 0.1084)
OKLCHoklch(57.85% 0.159 136.9)
XYZxyz(12.5185, 20.7837, 4.6481)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478E1F #661F8E
analogous
#7F8E1F #478E1F #1F8E2E
triadic
#478E1F #1F478E #8E1F47
tetradic
#478E1F #1F7F8E #661F8E #8E2E1F
square
#478E1F #1F7F8E #661F8E #8E2E1F
split-complementary
#478E1F #2E1F8E #8E1F7F
monochromatic
#152A09 #2E5C14 #478E1F #60C02A #80D94F

Accessibility & contrast

On white

4.07
#478E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#478E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478E1F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478E1F#FFFFFF#000000##000000
##478E1F1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#438979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #478e1f;
/* rgb */ color: rgb(71, 142, 31);
/* oklch */ color: oklch(57.8% 0.159 136.9);
Tailwind
colors: {
  custom: {
    50: '#81b064',
    500: '#478e1f',
    950: '#000000',
  },
}
SCSS
$custom: #478e1f;
$custom-light: #81b064;
$custom-dark: #000000;
JSON
{
  "hex": "#478e1f",
  "rgb": {
    "r": 71,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 98.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57845,
    "c": 0.15881,
    "h": 136.9
  },
  "luminance": 0.20785
}

Semantic roles & 50–950 ramp

primary
#478E1F
secondary
#944DBB
accent
#41E7AB
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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