#4D7228#4D7228

#4D7228 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 50.7% C 0.111 H 131.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#4D7228
RGBrgb(77, 114, 40)
HSLhsl(90, 48%, 30%)
HSVhsv(90, 65%, 45%)
CMYKcmyk(32.5%, 0%, 64.9%, 55.3%)
CIE-LABlab(43.89, -26.44, 35.88)
CIE-LCHlch(43.89, 44.57, 126.39°)
OKLaboklab(50.73% -0.0741 0.083)
OKLCHoklch(50.73% 0.111 131.8)
XYZxyz(9.4608, 13.7653, 4.1656)
Luminance0.1377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7228 #4D2872
analogous
#727228 #4D7228 #287228
triadic
#4D7228 #284D72 #72284D
tetradic
#4D7228 #287272 #4D2872 #722828
square
#4D7228 #287272 #4D2872 #722828
split-complementary
#4D7228 #282872 #722872
monochromatic
#101708 #2E4518 #4D7228 #6C9F38 #8AC252

Accessibility & contrast

On white

5.60
#4D7228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#4D7228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7228
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7228#FFFFFF#000000##FFFFFF
##4D72281.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A1F
Deuteranopia (green-blind)
#72672E
Tritanopia (blue-blind)
#4E6D62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4d7228;
/* rgb */ color: rgb(77, 114, 40);
/* oklch */ color: oklch(50.7% 0.111 131.8);
Tailwind
colors: {
  custom: {
    50: '#829b65',
    500: '#4d7228',
    950: '#000000',
  },
}
SCSS
$custom: #4d7228;
$custom-light: #829b65;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7228",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 90,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50734,
    "c": 0.11125,
    "h": 131.8
  },
  "luminance": 0.13766
}

Semantic roles & 50–950 ramp

primary
#4D7228
secondary
#7B52A4
accent
#50D894
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4D7228

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

Preview Lab → · Contrast checker → · Palette generator →

#4D7228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva