#478121#478121

#478121 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.3% C 0.141 H 135.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#478121
RGBrgb(71, 129, 33)
HSLhsl(96, 59%, 32%)
HSVhsv(96, 74%, 51%)
CMYKcmyk(45%, 0%, 74.4%, 49.4%)
CIE-LABlab(48.45, -36.19, 43.63)
CIE-LCHlch(48.45, 56.69, 129.68°)
OKLaboklab(54.35% -0.1008 0.0984)
OKLCHoklch(54.35% 0.141 135.7)
XYZxyz(10.7230, 17.1493, 4.1837)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478121 #5B2181
analogous
#778121 #478121 #21812B
triadic
#478121 #214781 #812147
tetradic
#478121 #217781 #5B2181 #812B21
square
#478121 #217781 #5B2181 #812B21
split-complementary
#478121 #2B2181 #812177
monochromatic
#112008 #2C5015 #478121 #62B22D #80D14B

Accessibility & contrast

On white

4.74
#478121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#478121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478121
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478121#FFFFFF#000000##FFFFFF
##4781211.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867610
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#457C6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #478121;
/* rgb */ color: rgb(71, 129, 33);
/* oklch */ color: oklch(54.3% 0.141 135.7);
Tailwind
colors: {
  custom: {
    50: '#80a663',
    500: '#478121',
    950: '#000000',
  },
}
SCSS
$custom: #478121;
$custom-light: #80a663;
$custom-dark: #000000;
JSON
{
  "hex": "#478121",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 96.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54347,
    "c": 0.14088,
    "h": 135.7
  },
  "luminance": 0.1715
}

Semantic roles & 50–950 ramp

primary
#478121
secondary
#8A4AB4
accent
#45E2A4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478121

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

Preview Lab → · Contrast checker → · Palette generator →

#478121 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva