#4F7311#4F7311

#4F7311 is a mid, vivid yellow-green. Relative luminance 0.140; OKLCH L 50.9% C 0.127 H 128.8°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#4F7311
RGBrgb(79, 115, 17)
HSLhsl(82, 74%, 26%)
HSVhsv(82, 85%, 45%)
CMYKcmyk(31.3%, 0%, 85.2%, 54.9%)
CIE-LABlab(44.18, -27.72, 45.24)
CIE-LCHlch(44.18, 53.06, 121.49°)
OKLaboklab(50.95% -0.0796 0.099)
OKLCHoklch(50.95% 0.127 128.8)
XYZxyz(9.4564, 13.9639, 2.7273)
Luminance0.1396 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7311 #351173
analogous
#736611 #4F7311 #1E7311
triadic
#4F7311 #114F73 #73114F
tetradic
#4F7311 #117366 #351173 #73111E
square
#4F7311 #117366 #351173 #73111E
split-complementary
#4F7311 #111E73 #661173
monochromatic
#121B04 #2A3E09 #4F7311 #74A819 #98DE21

Accessibility & contrast

On white

5.54
#4F7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#4F7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7311
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7311#FFFFFF#000000##FFFFFF
##4F73111.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#74681C
Tritanopia (blue-blind)
#526D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7311;
/* rgb */ color: rgb(79, 115, 17);
/* oklch */ color: oklch(50.9% 0.127 128.8);
Tailwind
colors: {
  custom: {
    50: '#849b5a',
    500: '#4f7311',
    950: '#000000',
  },
}
SCSS
$custom: #4f7311;
$custom-light: #849b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7311",
  "rgb": {
    "r": 79,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 82.041,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50948,
    "c": 0.12706,
    "h": 128.8
  },
  "luminance": 0.13964
}

Semantic roles & 50–950 ramp

primary
#4F7311
secondary
#6036AA
accent
#37F17B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7311

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

Preview Lab → · Contrast checker → · Palette generator →

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