#478C1F#478C1F

#478C1F is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.3% C 0.156 H 136.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#478C1F
RGBrgb(71, 140, 31)
HSLhsl(98, 64%, 34%)
HSVhsv(98, 78%, 55%)
CMYKcmyk(49.3%, 0%, 77.9%, 45.1%)
CIE-LABlab(52.06, -40.96, 47.94)
CIE-LCHlch(52.06, 63.05, 130.52°)
OKLaboklab(57.31% -0.1138 0.1071)
OKLCHoklch(57.31% 0.156 136.7)
XYZxyz(12.2236, 20.1939, 4.5498)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C1F #641F8C
analogous
#7D8C1F #478C1F #1F8C2D
triadic
#478C1F #1F478C #8C1F47
tetradic
#478C1F #1F7D8C #641F8C #8C2D1F
square
#478C1F #1F7D8C #641F8C #8C2D1F
split-complementary
#478C1F #2D1F8C #8C1F7D
monochromatic
#142809 #2E5A14 #478C1F #60BE2A #80D84E

Accessibility & contrast

On white

4.17
#478C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#478C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478C1F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478C1F#FFFFFF#000000##000000
##478C1F1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#438777
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c1f;
/* rgb */ color: rgb(71, 140, 31);
/* oklch */ color: oklch(57.3% 0.156 136.7);
Tailwind
colors: {
  custom: {
    50: '#81ae63',
    500: '#478c1f',
    950: '#000000',
  },
}
SCSS
$custom: #478c1f;
$custom-light: #81ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#478c1f",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 97.982,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57306,
    "c": 0.1563,
    "h": 136.7
  },
  "luminance": 0.20195
}

Semantic roles & 50–950 ramp

primary
#478C1F
secondary
#924CBB
accent
#41E7AA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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