#478F1F#478F1F

#478F1F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.1% C 0.160 H 137.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#478F1F
RGBrgb(71, 143, 31)
HSLhsl(99, 64%, 34%)
HSVhsv(99, 78%, 56%)
CMYKcmyk(50.3%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.04, -42.18, 48.89)
CIE-LCHlch(53.04, 64.57, 130.79°)
OKLaboklab(58.12% -0.1171 0.1091)
OKLCHoklch(58.12% 0.16 137)
XYZxyz(12.6679, 21.0826, 4.6979)
Luminance0.2108 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478F1F #671F8F
analogous
#7F8F1F #478F1F #1F8F2F
triadic
#478F1F #1F478F #8F1F47
tetradic
#478F1F #1F7F8F #671F8F #8F2F1F
square
#478F1F #1F7F8F #671F8F #8F2F1F
split-complementary
#478F1F #2F1F8F #8F1F7F
monochromatic
#152A09 #2E5D14 #478F1F #60C12A #81D94F

Accessibility & contrast

On white

4.03
#478F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#478F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478F1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478F1F#FFFFFF#000000##000000
##478F1F1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948203
Deuteranopia (green-blind)
#8B7C2B
Tritanopia (blue-blind)
#438A7A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #478f1f;
/* rgb */ color: rgb(71, 143, 31);
/* oklch */ color: oklch(58.1% 0.160 137.0);
Tailwind
colors: {
  custom: {
    50: '#82b064',
    500: '#478f1f',
    950: '#000000',
  },
}
SCSS
$custom: #478f1f;
$custom-light: #82b064;
$custom-dark: #000000;
JSON
{
  "hex": "#478f1f",
  "rgb": {
    "r": 71,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 98.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.16006,
    "h": 137
  },
  "luminance": 0.21083
}

Semantic roles & 50–950 ramp

primary
#478F1F
secondary
#954EBC
accent
#40E7AC
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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