#478125#478125

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

Color values

HEX#478125
RGBrgb(71, 129, 37)
HSLhsl(98, 55%, 33%)
HSVhsv(98, 71%, 51%)
CMYKcmyk(45%, 0%, 71.3%, 49.4%)
CIE-LABlab(48.48, -35.87, 42.04)
CIE-LCHlch(48.48, 55.26, 130.48°)
OKLaboklab(54.38% -0.0997 0.0957)
OKLCHoklch(54.38% 0.138 136.2)
XYZxyz(10.7824, 17.1730, 4.4965)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478125 #5F2581
analogous
#758125 #478125 #258131
triadic
#478125 #254781 #812547
tetradic
#478125 #257581 #5F2581 #813125
square
#478125 #257581 #5F2581 #813125
split-complementary
#478125 #312581 #812575
monochromatic
#13220A #2D5117 #478125 #61B133 #80CE53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478125#FFFFFF#000000##FFFFFF
##4781251.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)
#867617
Deuteranopia (green-blind)
#7E712D
Tritanopia (blue-blind)
#457C6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #478125;
/* rgb */ color: rgb(71, 129, 37);
/* oklch */ color: oklch(54.4% 0.138 136.2);
Tailwind
colors: {
  custom: {
    50: '#7fa665',
    500: '#478125',
    950: '#000000',
  },
}
SCSS
$custom: #478125;
$custom-light: #7fa665;
$custom-dark: #000000;
JSON
{
  "hex": "#478125",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 37
  },
  "hsl": {
    "h": 97.826,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54381,
    "c": 0.13814,
    "h": 136.2
  },
  "luminance": 0.17174
}

Semantic roles & 50–950 ramp

primary
#478125
secondary
#8E50B2
accent
#49DFA7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478125

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

Preview Lab → · Contrast checker → · Palette generator →

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