#478A1B#478A1B

#478A1B is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.7% C 0.156 H 136.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#478A1B
RGBrgb(71, 138, 27)
HSLhsl(96, 67%, 32%)
HSVhsv(96, 80%, 54%)
CMYKcmyk(48.6%, 0%, 80.4%, 45.9%)
CIE-LABlab(51.38, -40.39, 48.63)
CIE-LCHlch(51.38, 63.21, 129.71°)
OKLaboklab(56.74% -0.1125 0.1079)
OKLCHoklch(56.74% 0.156 136.2)
XYZxyz(11.8845, 19.5949, 4.1927)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478A1B #5E1B8A
analogous
#7F8A1B #478A1B #1B8A26
triadic
#478A1B #1B478A #8A1B47
tetradic
#478A1B #1B7F8A #5E1B8A #8A261B
square
#478A1B #1B7F8A #5E1B8A #8A261B
split-complementary
#478A1B #261B8A #8A1B7F
monochromatic
#122407 #2D5711 #478A1B #61BD25 #80DB45

Accessibility & contrast

On white

4.27
#478A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#478A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478A1B
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478A1B#FFFFFF#000000##000000
##478A1B1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#448575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #478a1b;
/* rgb */ color: rgb(71, 138, 27);
/* oklch */ color: oklch(56.7% 0.156 136.2);
Tailwind
colors: {
  custom: {
    50: '#81ad61',
    500: '#478a1b',
    950: '#000000',
  },
}
SCSS
$custom: #478a1b;
$custom-light: #81ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#478a1b",
  "rgb": {
    "r": 71,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 96.216,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5674,
    "c": 0.15594,
    "h": 136.2
  },
  "luminance": 0.19596
}

Semantic roles & 50–950 ramp

primary
#478A1B
secondary
#8D45BC
accent
#3EEAA6
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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