#477817#477817

#477817 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.8% C 0.135 H 133.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#477817
RGBrgb(71, 120, 23)
HSLhsl(90, 68%, 28%)
HSVhsv(90, 81%, 47%)
CMYKcmyk(40.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.41, -32.89, 44.32)
CIE-LCHlch(45.41, 55.19, 126.58°)
OKLaboklab(51.84% -0.0926 0.0983)
OKLCHoklch(51.84% 0.135 133.3)
XYZxyz(9.4695, 14.8339, 3.1747)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477817 #481778
analogous
#777817 #477817 #177817
triadic
#477817 #174778 #781747
tetradic
#477817 #177778 #481778 #781717
square
#477817 #177778 #481778 #781717
split-complementary
#477817 #171778 #781777
monochromatic
#0F1A05 #29450D #477817 #65AB21 #84D832

Accessibility & contrast

On white

5.29
#477817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#477817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477817
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477817#FFFFFF#000000##FFFFFF
##4778171.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#477366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #477817;
/* rgb */ color: rgb(71, 120, 23);
/* oklch */ color: oklch(51.8% 0.135 133.3);
Tailwind
colors: {
  custom: {
    50: '#7f9f5d',
    500: '#477817',
    950: '#000000',
  },
}
SCSS
$custom: #477817;
$custom-light: #7f9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#477817",
  "rgb": {
    "r": 71,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 90.309,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51836,
    "c": 0.13504,
    "h": 133.3
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#477817
secondary
#763EAD
accent
#3DEB95
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #477817

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

Preview Lab → · Contrast checker → · Palette generator →

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