#477227#477227

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

Color values

HEX#477227
RGBrgb(71, 114, 39)
HSLhsl(94, 49%, 30%)
HSVhsv(94, 66%, 45%)
CMYKcmyk(37.7%, 0%, 65.8%, 55.3%)
CIE-LABlab(43.54, -28.88, 35.86)
CIE-LCHlch(43.54, 46.04, 128.85°)
OKLaboklab(50.35% -0.0805 0.0829)
OKLCHoklch(50.35% 0.116 134.1)
XYZxyz(8.9819, 13.5203, 4.0555)
Luminance0.1352 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#477227 #522772
analogous
#6D7227 #477227 #27722C
triadic
#477227 #274772 #722747
tetradic
#477227 #276D72 #522772 #722C27
square
#477227 #276D72 #522772 #722C27
split-complementary
#477227 #2C2772 #72276D
monochromatic
#0E1708 #2B4417 #477227 #63A037 #81C350

Accessibility & contrast

On white

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

On black

3.70
#477227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##477227#FFFFFF#000000##FFFFFF
##4772271.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #477227;
/* rgb */ color: rgb(71, 114, 39);
/* oklch */ color: oklch(50.3% 0.116 134.1);
Tailwind
colors: {
  custom: {
    50: '#7e9b65',
    500: '#477227',
    950: '#000000',
  },
}
SCSS
$custom: #477227;
$custom-light: #7e9b65;
$custom-dark: #000000;
JSON
{
  "hex": "#477227",
  "rgb": {
    "r": 71,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 94.4,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.50347,
    "c": 0.11553,
    "h": 134.1
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#477227
secondary
#8150A4
accent
#4FD99E
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #477227

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

Preview Lab → · Contrast checker → · Palette generator →

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