#477228#477228

#477228 is a mid, moderate yellow-green. Relative luminance 0.135; OKLCH L 50.4% C 0.115 H 134.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#477228
RGBrgb(71, 114, 40)
HSLhsl(95, 48%, 30%)
HSVhsv(95, 65%, 45%)
CMYKcmyk(37.7%, 0%, 64.9%, 55.3%)
CIE-LABlab(43.55, -28.78, 35.39)
CIE-LCHlch(43.55, 45.62, 129.12°)
OKLaboklab(50.36% -0.0801 0.082)
OKLCHoklch(50.36% 0.115 134.3)
XYZxyz(8.9987, 13.5270, 4.1439)
Luminance0.1353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477228 #532872
analogous
#6C7228 #477228 #28722E
triadic
#477228 #284772 #722847
tetradic
#477228 #286C72 #532872 #722E28
square
#477228 #286C72 #532872 #722E28
split-complementary
#477228 #2E2872 #72286C
monochromatic
#0F1708 #2B4518 #477228 #639F38 #81C252

Accessibility & contrast

On white

5.67
#477228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#477228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #477228
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##477228#FFFFFF#000000##FFFFFF
##4772281.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76691F
Deuteranopia (green-blind)
#70662E
Tritanopia (blue-blind)
#476E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #477228;
/* rgb */ color: rgb(71, 114, 40);
/* oklch */ color: oklch(50.4% 0.115 134.3);
Tailwind
colors: {
  custom: {
    50: '#7d9b65',
    500: '#477228',
    950: '#000000',
  },
}
SCSS
$custom: #477228;
$custom-light: #7d9b65;
$custom-dark: #000000;
JSON
{
  "hex": "#477228",
  "rgb": {
    "r": 71,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 94.865,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50358,
    "c": 0.11466,
    "h": 134.3
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#477228
secondary
#8252A4
accent
#50D89F
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #477228

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

Preview Lab → · Contrast checker → · Palette generator →

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