#4D7231#4D7231

#4D7231 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.103 H 133.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4D7231
RGBrgb(77, 114, 49)
HSLhsl(94, 40%, 32%)
HSVhsv(94, 57%, 45%)
CMYKcmyk(32.5%, 0%, 57%, 55.3%)
CIE-LABlab(43.99, -25.48, 31.50)
CIE-LCHlch(43.99, 40.51, 128.97°)
OKLaboklab(50.85% -0.0707 0.0746)
OKLCHoklch(50.85% 0.103 133.5)
XYZxyz(9.6321, 13.8338, 5.0678)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7231 #563172
analogous
#6E7231 #4D7231 #317236
triadic
#4D7231 #314D72 #72314D
tetradic
#4D7231 #316E72 #563172 #723631
square
#4D7231 #316E72 #563172 #723631
split-complementary
#4D7231 #363172 #72316E
monochromatic
#131C0C #30471F #4D7231 #6A9D43 #88BB62

Accessibility & contrast

On white

5.58
#4D7231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4D7231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7231
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7231#FFFFFF#000000##FFFFFF
##4D72311.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766A2B
Deuteranopia (green-blind)
#716735
Tritanopia (blue-blind)
#4D6E63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4d7231;
/* rgb */ color: rgb(77, 114, 49);
/* oklch */ color: oklch(50.8% 0.103 133.5);
Tailwind
colors: {
  custom: {
    50: '#819b6b',
    500: '#4d7231',
    950: '#000000',
  },
}
SCSS
$custom: #4d7231;
$custom-light: #819b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7231",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 94.154,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.50847,
    "c": 0.10274,
    "h": 133.5
  },
  "luminance": 0.13834
}

Semantic roles & 50–950 ramp

primary
#4D7231
secondary
#845CA3
accent
#58D09C
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0A0E07
muted
#7C7E7A

Preview Lab

Preview with #4D7231

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

Preview Lab → · Contrast checker → · Palette generator →

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