#478B1F#478B1F

#478B1F is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.0% C 0.155 H 136.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#478B1F
RGBrgb(71, 139, 31)
HSLhsl(98, 64%, 33%)
HSVhsv(98, 78%, 55%)
CMYKcmyk(48.9%, 0%, 77.7%, 45.5%)
CIE-LABlab(51.73, -40.55, 47.62)
CIE-LCHlch(51.73, 62.54, 130.42°)
OKLaboklab(57.04% -0.1127 0.1064)
OKLCHoklch(57.04% 0.155 136.6)
XYZxyz(12.0781, 19.9030, 4.5013)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B1F #631F8B
analogous
#7D8B1F #478B1F #1F8B2D
triadic
#478B1F #1F478B #8B1F47
tetradic
#478B1F #1F7D8B #631F8B #8B2D1F
square
#478B1F #1F7D8B #631F8B #8B2D1F
split-complementary
#478B1F #2D1F8B #8B1F7D
monochromatic
#142709 #2D5914 #478B1F #61BD2A #80D74D

Accessibility & contrast

On white

4.22
#478B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#478B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478B1F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478B1F#FFFFFF#000000##000000
##478B1F1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#438677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b1f;
/* rgb */ color: rgb(71, 139, 31);
/* oklch */ color: oklch(57.0% 0.155 136.6);
Tailwind
colors: {
  custom: {
    50: '#81ad63',
    500: '#478b1f',
    950: '#000000',
  },
}
SCSS
$custom: #478b1f;
$custom-light: #81ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#478b1f",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 97.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57036,
    "c": 0.15503,
    "h": 136.6
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#478B1F
secondary
#914CBA
accent
#41E7A9
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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