#478229#478229

#478229 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.7% C 0.137 H 136.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#478229
RGBrgb(71, 130, 41)
HSLhsl(100, 52%, 34%)
HSVhsv(100, 68%, 51%)
CMYKcmyk(45.4%, 0%, 68.5%, 49%)
CIE-LABlab(48.84, -35.96, 40.70)
CIE-LCHlch(48.84, 54.31, 131.46°)
OKLaboklab(54.69% -0.0996 0.0934)
OKLCHoklch(54.69% 0.137 136.8)
XYZxyz(10.9811, 17.4643, 4.8897)
Luminance0.1746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478229 #642982
analogous
#738229 #478229 #298237
triadic
#478229 #294782 #822947
tetradic
#478229 #297382 #642982 #823729
square
#478229 #297382 #642982 #823729
split-complementary
#478229 #372982 #822973
monochromatic
#14250C #2E531A #478229 #60B138 #80CB5A

Accessibility & contrast

On white

4.67
#478229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#478229 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478229
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478229#FFFFFF#000000##FFFFFF
##4782291.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771D
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#447D70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478229;
/* rgb */ color: rgb(71, 130, 41);
/* oklch */ color: oklch(54.7% 0.137 136.8);
Tailwind
colors: {
  custom: {
    50: '#7fa767',
    500: '#478229',
    950: '#000000',
  },
}
SCSS
$custom: #478229;
$custom-light: #7fa767;
$custom-dark: #000000;
JSON
{
  "hex": "#478229",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 99.775,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54689,
    "c": 0.13653,
    "h": 136.8
  },
  "luminance": 0.17465
}

Semantic roles & 50–950 ramp

primary
#478229
secondary
#9256B0
accent
#4CDBAB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #478229

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

Preview Lab → · Contrast checker → · Palette generator →

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