#478C1C#478C1C

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

Color values

HEX#478C1C
RGBrgb(71, 140, 28)
HSLhsl(97, 67%, 33%)
HSVhsv(97, 80%, 55%)
CMYKcmyk(49.3%, 0%, 80%, 45.1%)
CIE-LABlab(52.04, -41.15, 48.93)
CIE-LCHlch(52.04, 63.93, 130.06°)
OKLaboklab(57.29% -0.1145 0.1087)
OKLCHoklch(57.29% 0.158 136.5)
XYZxyz(12.1859, 20.1788, 4.3512)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C1C #611C8C
analogous
#7F8C1C #478C1C #1C8C29
triadic
#478C1C #1C478C #8C1C47
tetradic
#478C1C #1C7F8C #611C8C #8C291C
square
#478C1C #1C7F8C #611C8C #8C291C
split-complementary
#478C1C #291C8C #8C1C7F
monochromatic
#132608 #2D5912 #478C1C #61BF26 #80DA48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478C1C#FFFFFF#000000##000000
##478C1C1.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)
#887A29
Tritanopia (blue-blind)
#438777
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c1c;
/* rgb */ color: rgb(71, 140, 28);
/* oklch */ color: oklch(57.3% 0.158 136.5);
Tailwind
colors: {
  custom: {
    50: '#81ae62',
    500: '#478c1c',
    950: '#000000',
  },
}
SCSS
$custom: #478c1c;
$custom-light: #81ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#478c1c",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 96.964,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.15792,
    "h": 136.5
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#478C1C
secondary
#8F48BC
accent
#3EEAA8
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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