#478B1C#478B1C

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

Color values

HEX#478B1C
RGBrgb(71, 139, 28)
HSLhsl(97, 66%, 33%)
HSVhsv(97, 80%, 55%)
CMYKcmyk(48.9%, 0%, 79.9%, 45.5%)
CIE-LABlab(51.71, -40.74, 48.62)
CIE-LCHlch(51.71, 63.43, 129.96°)
OKLaboklab(57.02% -0.1134 0.1081)
OKLCHoklch(57.02% 0.157 136.4)
XYZxyz(12.0404, 19.8879, 4.3027)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B1C #601C8B
analogous
#7E8B1C #478B1C #1C8B29
triadic
#478B1C #1C478B #8B1C47
tetradic
#478B1C #1C7E8B #601C8B #8B291C
square
#478B1C #1C7E8B #601C8B #8B291C
split-complementary
#478B1C #291C8B #8B1C7E
monochromatic
#132507 #2D5812 #478B1C #61BE26 #80DA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478B1C#FFFFFF#000000##000000
##478B1C1.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)
#907F00
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#448676
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b1c;
/* rgb */ color: rgb(71, 139, 28);
/* oklch */ color: oklch(57.0% 0.157 136.4);
Tailwind
colors: {
  custom: {
    50: '#81ad62',
    500: '#478b1c',
    950: '#000000',
  },
}
SCSS
$custom: #478b1c;
$custom-light: #81ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#478b1c",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 96.757,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57016,
    "c": 0.15667,
    "h": 136.4
  },
  "luminance": 0.19889
}

Semantic roles & 50–950 ramp

primary
#478B1C
secondary
#8F47BC
accent
#3EE9A7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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