#478128#478128

#478128 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.4% C 0.136 H 136.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#478128
RGBrgb(71, 129, 40)
HSLhsl(99, 53%, 33%)
HSVhsv(99, 69%, 51%)
CMYKcmyk(45%, 0%, 69%, 49.4%)
CIE-LABlab(48.50, -35.61, 40.78)
CIE-LCHlch(48.50, 54.14, 131.13°)
OKLaboklab(54.41% -0.0987 0.0934)
OKLCHoklch(54.41% 0.136 136.6)
XYZxyz(10.8315, 17.1927, 4.7549)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478128 #622881
analogous
#738128 #478128 #288135
triadic
#478128 #284781 #812847
tetradic
#478128 #287381 #622881 #813528
square
#478128 #287381 #622881 #813528
split-complementary
#478128 #352881 #812873
monochromatic
#14240B #2D521A #478128 #61B036 #80CB58

Accessibility & contrast

On white

4.73
#478128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#478128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478128
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478128#FFFFFF#000000##FFFFFF
##4781281.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761C
Deuteranopia (green-blind)
#7E7130
Tritanopia (blue-blind)
#447C6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #478128;
/* rgb */ color: rgb(71, 129, 40);
/* oklch */ color: oklch(54.4% 0.136 136.6);
Tailwind
colors: {
  custom: {
    50: '#7fa667',
    500: '#478128',
    950: '#000000',
  },
}
SCSS
$custom: #478128;
$custom-light: #7fa667;
$custom-dark: #000000;
JSON
{
  "hex": "#478128",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 99.101,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54409,
    "c": 0.13592,
    "h": 136.6
  },
  "luminance": 0.17193
}

Semantic roles & 50–950 ramp

primary
#478128
secondary
#9054B0
accent
#4CDCAA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #478128

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

Preview Lab → · Contrast checker → · Palette generator →

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