#4D7828#4D7828

#4D7828 is a mid, moderate yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.120 H 133.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4D7828
RGBrgb(77, 120, 40)
HSLhsl(92, 50%, 31%)
HSVhsv(92, 67%, 47%)
CMYKcmyk(35.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.86, -29.33, 38.03)
CIE-LCHlch(45.86, 48.02, 127.65°)
OKLaboklab(52.33% -0.082 0.0875)
OKLCHoklch(52.33% 0.12 133.1)
XYZxyz(10.1599, 15.1635, 4.3986)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7828 #532878
analogous
#757828 #4D7828 #28782B
triadic
#4D7828 #284D78 #78284D
tetradic
#4D7828 #287578 #532878 #782B28
square
#4D7828 #287578 #532878 #782B28
split-complementary
#4D7828 #2B2878 #782875
monochromatic
#121C09 #304A19 #4D7828 #6AA637 #89C654

Accessibility & contrast

On white

5.21
#4D7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4D7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7828
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7828#FFFFFF#000000##FFFFFF
##4D78281.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#776B2E
Tritanopia (blue-blind)
#4D7367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d7828;
/* rgb */ color: rgb(77, 120, 40);
/* oklch */ color: oklch(52.3% 0.120 133.1);
Tailwind
colors: {
  custom: {
    50: '#829f66',
    500: '#4d7828',
    950: '#000000',
  },
}
SCSS
$custom: #4d7828;
$custom-light: #829f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7828",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 92.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52332,
    "c": 0.11995,
    "h": 133.1
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#4D7828
secondary
#8152AA
accent
#4EDA99
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4D7828

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

Preview Lab → · Contrast checker → · Palette generator →

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