#4F7231#4F7231

#4F7231 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.0% C 0.102 H 132.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#4F7231
RGBrgb(79, 114, 49)
HSLhsl(92, 40%, 32%)
HSVhsv(92, 57%, 45%)
CMYKcmyk(30.7%, 0%, 57%, 55.3%)
CIE-LABlab(44.12, -24.69, 31.67)
CIE-LCHlch(44.12, 40.16, 127.94°)
OKLaboklab(50.98% -0.0686 0.0749)
OKLCHoklch(50.98% 0.102 132.5)
XYZxyz(9.7960, 13.9183, 5.0755)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7231 #543172
analogous
#707231 #4F7231 #317234
triadic
#4F7231 #314F72 #72314F
tetradic
#4F7231 #317072 #543172 #723431
square
#4F7231 #317072 #543172 #723431
split-complementary
#4F7231 #343172 #723170
monochromatic
#141C0C #31471F #4F7231 #6D9D43 #8BBB62

Accessibility & contrast

On white

5.55
#4F7231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#4F7231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7231
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7231#FFFFFF#000000##FFFFFF
##4F72311.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f7231;
/* rgb */ color: rgb(79, 114, 49);
/* oklch */ color: oklch(51.0% 0.102 132.5);
Tailwind
colors: {
  custom: {
    50: '#829a6b',
    500: '#4f7231',
    950: '#000000',
  },
}
SCSS
$custom: #4f7231;
$custom-light: #829a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7231",
  "rgb": {
    "r": 79,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 92.308,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.10159,
    "h": 132.5
  },
  "luminance": 0.13919
}

Semantic roles & 50–950 ramp

primary
#4F7231
secondary
#825CA3
accent
#58D099
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E07
muted
#7C7E7A

Preview Lab

Preview with #4F7231

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

Preview Lab → · Contrast checker → · Palette generator →

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