#477828#477828

#477828 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.0% C 0.123 H 135.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#477828
RGBrgb(71, 120, 40)
HSLhsl(97, 50%, 31%)
HSVhsv(97, 67%, 47%)
CMYKcmyk(40.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.53, -31.58, 37.58)
CIE-LCHlch(45.53, 49.09, 130.05°)
OKLaboklab(51.98% -0.0878 0.0867)
OKLCHoklch(51.98% 0.123 135.4)
XYZxyz(9.6978, 14.9252, 4.3769)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477828 #592878
analogous
#6F7828 #477828 #287831
triadic
#477828 #284778 #782847
tetradic
#477828 #286F78 #592878 #783128
square
#477828 #286F78 #592878 #783128
split-complementary
#477828 #312878 #78286F
monochromatic
#111C09 #2C4A19 #477828 #62A637 #80C654

Accessibility & contrast

On white

5.27
#477828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#477828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477828
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477828#FFFFFF#000000##FFFFFF
##4778281.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#766A2F
Tritanopia (blue-blind)
#467367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #477828;
/* rgb */ color: rgb(71, 120, 40);
/* oklch */ color: oklch(52.0% 0.123 135.4);
Tailwind
colors: {
  custom: {
    50: '#7e9f66',
    500: '#477828',
    950: '#000000',
  },
}
SCSS
$custom: #477828;
$custom-light: #7e9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#477828",
  "rgb": {
    "r": 71,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 96.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.12334,
    "h": 135.4
  },
  "luminance": 0.14926
}

Semantic roles & 50–950 ramp

primary
#477828
secondary
#8852AA
accent
#4EDAA4
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #477828

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

Preview Lab → · Contrast checker → · Palette generator →

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