#4F7F1C#4F7F1C

#4F7F1C is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.137 H 132.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4F7F1C
RGBrgb(79, 127, 28)
HSLhsl(89, 64%, 30%)
HSVhsv(89, 78%, 50%)
CMYKcmyk(37.8%, 0%, 78%, 50.2%)
CIE-LABlab(48.16, -32.74, 45.36)
CIE-LCHlch(48.16, 55.94, 125.82°)
OKLaboklab(54.22% -0.0924 0.1011)
OKLCHoklch(54.22% 0.137 132.4)
XYZxyz(11.0233, 16.9244, 3.7843)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7F1C #4C1C7F
analogous
#7F7D1C #4F7F1C #1D7F1C
triadic
#4F7F1C #1C4F7F #7F1C4F
tetradic
#4F7F1C #1C7F7D #4C1C7F #7F1C1D
square
#4F7F1C #1C7F7D #4C1C7F #7F1C1D
split-complementary
#4F7F1C #1C1D7F #7D1C7F
monochromatic
#111B06 #304D11 #4F7F1C #6EB127 #8DD540

Accessibility & contrast

On white

4.79
#4F7F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4F7F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7F1C
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7F1C#FFFFFF#000000##FFFFFF
##4F7F1C1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857506
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#507A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7f1c;
/* rgb */ color: rgb(79, 127, 28);
/* oklch */ color: oklch(54.2% 0.137 132.4);
Tailwind
colors: {
  custom: {
    50: '#85a460',
    500: '#4f7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #4f7f1c;
$custom-light: #85a460;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7f1c",
  "rgb": {
    "r": 79,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 89.091,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54215,
    "c": 0.13696,
    "h": 132.4
  },
  "luminance": 0.16925
}

Semantic roles & 50–950 ramp

primary
#4F7F1C
secondary
#7A44B3
accent
#41E791
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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