#478D1F#478D1F

#478D1F is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.6% C 0.158 H 136.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#478D1F
RGBrgb(71, 141, 31)
HSLhsl(98, 64%, 34%)
HSVhsv(98, 78%, 55%)
CMYKcmyk(49.6%, 0%, 78%, 44.7%)
CIE-LABlab(52.38, -41.37, 48.25)
CIE-LCHlch(52.38, 63.56, 130.61°)
OKLaboklab(57.58% -0.1149 0.1078)
OKLCHoklch(57.58% 0.158 136.8)
XYZxyz(12.3704, 20.4874, 4.5987)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D1F #651F8D
analogous
#7E8D1F #478D1F #1F8D2E
triadic
#478D1F #1F478D #8D1F47
tetradic
#478D1F #1F7E8D #651F8D #8D2E1F
square
#478D1F #1F7E8D #651F8D #8D2E1F
split-complementary
#478D1F #2E1F8D #8D1F7E
monochromatic
#142909 #2E5B14 #478D1F #60BF2A #80D84E

Accessibility & contrast

On white

4.12
#478D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#478D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478D1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478D1F#FFFFFF#000000##000000
##478D1F1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#438878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #478d1f;
/* rgb */ color: rgb(71, 141, 31);
/* oklch */ color: oklch(57.6% 0.158 136.8);
Tailwind
colors: {
  custom: {
    50: '#81af63',
    500: '#478d1f',
    950: '#000000',
  },
}
SCSS
$custom: #478d1f;
$custom-light: #81af63;
$custom-dark: #000000;
JSON
{
  "hex": "#478d1f",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 98.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57576,
    "c": 0.15756,
    "h": 136.8
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

primary
#478D1F
secondary
#934DBB
accent
#41E7AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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