#4F7F2B#4F7F2B

#4F7F2B is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.126 H 134.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4F7F2B
RGBrgb(79, 127, 43)
HSLhsl(94, 49%, 33%)
HSVhsv(94, 66%, 50%)
CMYKcmyk(37.8%, 0%, 66.1%, 50.2%)
CIE-LABlab(48.28, -31.57, 39.32)
CIE-LCHlch(48.28, 50.43, 128.76°)
OKLaboklab(54.35% -0.088 0.0906)
OKLCHoklch(54.35% 0.126 134.2)
XYZxyz(11.2496, 17.0149, 4.9765)
Luminance0.1701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7F2B #5B2B7F
analogous
#797F2B #4F7F2B #2B7F31
triadic
#4F7F2B #2B4F7F #7F2B4F
tetradic
#4F7F2B #2B797F #5B2B7F #7F312B
square
#4F7F2B #2B797F #5B2B7F #7F312B
split-complementary
#4F7F2B #312B7F #7F2B79
monochromatic
#16240C #33511C #4F7F2B #6BAD3A #8BC85C

Accessibility & contrast

On white

4.77
#4F7F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4F7F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7F2B
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7F2B#FFFFFF#000000##FFFFFF
##4F7F2B1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847521
Deuteranopia (green-blind)
#7D7132
Tritanopia (blue-blind)
#4F7A6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f7f2b;
/* rgb */ color: rgb(79, 127, 43);
/* oklch */ color: oklch(54.3% 0.126 134.2);
Tailwind
colors: {
  custom: {
    50: '#84a468',
    500: '#4f7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #4f7f2b;
$custom-light: #84a468;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7f2b",
  "rgb": {
    "r": 79,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 94.286,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54345,
    "c": 0.12633,
    "h": 134.2
  },
  "luminance": 0.17015
}

Semantic roles & 50–950 ramp

primary
#4F7F2B
secondary
#8958AE
accent
#4FD99E
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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