#478C1B#478C1B

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

Color values

HEX#478C1B
RGBrgb(71, 140, 27)
HSLhsl(97, 68%, 33%)
HSVhsv(97, 81%, 55%)
CMYKcmyk(49.3%, 0%, 80.7%, 45.1%)
CIE-LABlab(52.03, -41.21, 49.25)
CIE-LCHlch(52.03, 64.21, 129.92°)
OKLaboklab(57.28% -0.1147 0.1092)
OKLCHoklch(57.28% 0.158 136.4)
XYZxyz(12.1741, 20.1741, 4.2892)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C1B #601B8C
analogous
#808C1B #478C1B #1B8C27
triadic
#478C1B #1B478C #8C1B47
tetradic
#478C1B #1B808C #601B8C #8C271B
square
#478C1B #1B808C #601B8C #8C271B
split-complementary
#478C1B #271B8C #8C1B80
monochromatic
#132507 #2D5911 #478C1B #61BF25 #80DB46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478C1B#FFFFFF#000000##000000
##478C1B1.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)
#918000
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#448777
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c1b;
/* rgb */ color: rgb(71, 140, 27);
/* oklch */ color: oklch(57.3% 0.158 136.4);
Tailwind
colors: {
  custom: {
    50: '#81ae62',
    500: '#478c1b',
    950: '#000000',
  },
}
SCSS
$custom: #478c1b;
$custom-light: #81ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#478c1b",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 96.637,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5728,
    "c": 0.15843,
    "h": 136.4
  },
  "luminance": 0.20175
}

Semantic roles & 50–950 ramp

primary
#478C1B
secondary
#8F46BD
accent
#3DEBA7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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