#478D1C#478D1C

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

Color values

HEX#478D1C
RGBrgb(71, 141, 28)
HSLhsl(97, 67%, 33%)
HSVhsv(97, 80%, 55%)
CMYKcmyk(49.6%, 0%, 80.1%, 44.7%)
CIE-LABlab(52.37, -41.56, 49.24)
CIE-LCHlch(52.37, 64.43, 130.16°)
OKLaboklab(57.56% -0.1156 0.1094)
OKLCHoklch(57.56% 0.159 136.6)
XYZxyz(12.3327, 20.4723, 4.4001)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478D1C #621C8D
analogous
#7F8D1C #478D1C #1C8D29
triadic
#478D1C #1C478D #8D1C47
tetradic
#478D1C #1C7F8D #621C8D #8D291C
square
#478D1C #1C7F8D #621C8D #8D291C
split-complementary
#478D1C #291C8D #8D1C7F
monochromatic
#142708 #2D5A12 #478D1C #61C026 #80DB49

Accessibility & contrast

On white

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

On black

5.09
#478D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478D1C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478D1C#FFFFFF#000000##000000
##478D1C1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #478d1c;
/* rgb */ color: rgb(71, 141, 28);
/* oklch */ color: oklch(57.6% 0.159 136.6);
Tailwind
colors: {
  custom: {
    50: '#81af62',
    500: '#478d1c',
    950: '#000000',
  },
}
SCSS
$custom: #478d1c;
$custom-light: #81af62;
$custom-dark: #000000;
JSON
{
  "hex": "#478d1c",
  "rgb": {
    "r": 71,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 97.168,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57557,
    "c": 0.15917,
    "h": 136.6
  },
  "luminance": 0.20473
}

Semantic roles & 50–950 ramp

primary
#478D1C
secondary
#9048BD
accent
#3EEAA8
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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